![]() |
|
#1
|
||||
|
||||
Batch file cannot move/delete folder in C:\I have this .bat file that helps me with routine maintenance tasks on my Windows XP PC. One new task I have been trying to add to the script these past couple of days is however not working.
What I am trying to do is MOVE one folder and all it's contents to another folder. For example, I want the script to MOVE C:\files\bz TO C:\WINDOWS\Temp\files\bz, where C:\files\bz is a directory or folder. Since I created this folder, I am able to MOVE and/or DELETE this folder via the command line with no problems. But trying to do the same with a script is proving to be an impossible task. I am certain this is a "permission" problem because this same script can MOVE or DELETE folders on other drives, other than C:. If my Windows logon username/account has all the necessary permissions for managing this folder, how do I maintain the same permissions for the script and when it is run? You know, like running a script in Linux as root? __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#2
|
||||
|
||||
Re: Batch file cannot move/delete folder in C:\Does Windows allow individual programs to have different permission settings? I don't remember but you might want to investigate. I also want to say that where your programs reside impacts how the permissions are maintained for them.
You might try making a special account just for your "root" scripts and see what happens. Like I said, it's been years since I've messed with Windows and I don't remember exactly how to fix this. __________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 07:44 |
| Download files in c for windows operating system | oozsakarya | C Programming Language | 5 | 20-Jun-2006 03:33 |
| C++ for moving files across network? | dlp | CPP / C++ Forum | 1 | 25-May-2006 12:22 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 10:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 11:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The