Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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?

There are spaces in the path so the system is looking for a directory named C:\Documents
Enclose the path in " " to avoid this.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |