Computing.Net > Forums > Programming > batch file for Documents and settin

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch file for Documents and settin

Reply to Message Icon

Name: AdrianRoe
Date: March 26, 2009 at 15:22:28 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

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?



Sponsored Link
Ads by Google

Response Number 1
Name: Valerie (by Garibaldi)
Date: March 26, 2009 at 15:49:35 Pacific
Reply:

There are spaces in the path so the system is looking for a directory named C:\Documents

Enclose the path in " " to avoid this.


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: batch file for Documents and settin

Batch file for Outlook www.computing.net/answers/programming/batch-file-for-outlook/15439.html

Batch file to start and stop servic www.computing.net/answers/programming/batch-file-to-start-and-stop-servic/15882.html

batch file name date and time www.computing.net/answers/programming/batch-file-name-date-and-time/15060.html