k_rasuri
asked on
Access problem with Move and delete using cmd
hi friends,
Im having a strange problem with my command line delete and move commands. Im trying to move a backup file from my local server to a shared drive on another server
move c:\backups\TestDB.bak \\Remoteserver\sharedfolde r
i get access is denied error. if i use copy instead of move my file will be copied to the remote server.
copy c:\backups\TestDB.bak \\Remoteserver\sharedfolde r
if i want to delete the backup file on my local server, im again getting the error i got earlier
del c:\BackUps\TestDB.bak
Why am i getting this error. it is very strange as im the Admin on my local machine. but still i cannot delete the file from the command line
Please help
Thanks
Im having a strange problem with my command line delete and move commands. Im trying to move a backup file from my local server to a shared drive on another server
move c:\backups\TestDB.bak \\Remoteserver\sharedfolde
i get access is denied error. if i use copy instead of move my file will be copied to the remote server.
copy c:\backups\TestDB.bak \\Remoteserver\sharedfolde
if i want to delete the backup file on my local server, im again getting the error i got earlier
del c:\BackUps\TestDB.bak
Why am i getting this error. it is very strange as im the Admin on my local machine. but still i cannot delete the file from the command line
Please help
Thanks
is the file in use? check by right clicking on my computer an looking in shared / open files
ASKER
no the file is not open..i checked it
The file is read-only.
Try executing this:
attrib -r c:\backups\TestDB.bak
and then try moving or deleting it.
Try executing this:
attrib -r c:\backups\TestDB.bak
and then try moving or deleting it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Uhh, Vista. Please provide OS info next time you post a question, so the experts can answer quick and correct.
BTW, move works crossing drives. Internally, it does the same as you would - first copy, after success delete the source.
BTW, move works crossing drives. Internally, it does the same as you would - first copy, after success delete the source.