GIDForums  

Go Back   GIDForums > Computer Forums > Computer Software Forum - Windows
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Mar-2008, 17:40
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough

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?
  #2  
Old 06-Mar-2008, 21:06
crystalattice's Avatar
crystalattice crystalattice is offline
Flame War Instigator
 
Join Date: Apr 2004
Location: San Diego
Posts: 1,534
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

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 GIDBlogNARMY by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 04:19.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.