[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Access problem with Move and delete using cmd

Posted on 2009-04-09
5
Medium Priority
?
685 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:k_rasuri
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 7

Expert Comment

by:Thomas Wheeler
ID: 24112444
is the file in use? check by right clicking on my computer an looking in shared / open files
0
 
LVL 8

Author Comment

by:k_rasuri
ID: 24112466
no the file is not open..i checked it
0
 
LVL 41

Expert Comment

by:ralmada
ID: 24112556
The file is read-only.
Try executing this:
attrib -r c:\backups\TestDB.bak
and then try moving or deleting it.
0
 
LVL 8

Accepted Solution

by:
k_rasuri earned 0 total points
ID: 24117223
thanks guys for trying to help me...I read some where that move across volumes is not allowed. so im doing it in a 2 step process. copy the file to remote server and delete the local copy.

earlier my delete on local server didnt work. but my friend told me that even if i am adminstator on local machine, i wont be logged in as admin to cmd prompt. so right clicked on cmd script icon and logged in as admin and it is working now..

thanks again for your time
0
 
LVL 71

Expert Comment

by:Qlemo
ID: 24121631
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.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question