Link to home
Start Free TrialLog in
Avatar of k_rasuri
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\sharedfolder

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\sharedfolder


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
Avatar of Thomas Wheeler
Thomas Wheeler

is the file in use? check by right clicking on my computer an looking in shared / open files
Avatar of k_rasuri

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.
ASKER CERTIFIED SOLUTION
Avatar of k_rasuri
k_rasuri

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Qlemo
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.