I need a short script that will check if a user profile is present on the local C: drive, and if it is it will then do a task.
I was thinking along the lines of:-
If exits C:\users\%username% then…….
If exits “C:\Documents and Settings\%username%” then……
But it seems to be falling over with the following error after it is run…..
C:\users\student1 was unexpected at this time
So the user name is identified but the script stops