batch file for Documents and settin

March 26, 2009 at 15:22:28
Specs: Windows XP
HI,

I no next to nothing about scripting so I come here for some help. I am trying to write a simple script that would delete in local group policy a user profile folder in C:\Documents and Settings. Our library uses a MIcrosoft application called SteadyState that - when a patron logs on - creates a temporary profile named after the user account that accompanies a "locked profile" that SteadyState creates. This is the script that II have come up with for a batch file( in this example the user account is named pro08)

rmdir C:\Documents and Settings\pro08 /s

However, when I run it i get the following output in DOS window


C:\>rmdir C:\Documents and Settings\pro08 /s
C:\Documents, Are you sure (Y/N)? y
The system cannot find the file specified.
and, Are you sure (Y/N)? y
The system cannot find the file specified.
Settings\pro08, Are you sure (Y/N)?

yet, the folder C:\Documents and Settings\pro08 is there

Any suggestions?


See More: batch file for Documents and settin

Report •


#1
March 26, 2009 at 15:49:35
There are spaces in the path so the system is looking for a directory named C:\Documents

Enclose the path in " " to avoid this.


Report •
Related Solutions


Ask Question