wont copy???

  • Thread starter Thread starter fishqqq
  • Start date Start date
F

fishqqq

i have created a .bat file which a user can use to backup her data to
another drive but for some reason this file will only work in XP if you
are
signed in as admin. The users account settings are set EXACTLY as the
admins settings (computer administrator) so this doesn't make any sense
to
me?

the dos command is as follows:

xcopy "g:\dina\*.*" "e:\house back up\dina\" /s

any assistance is greatly appreceiated.
-Steve
 
i have created a .bat file which a user can use to backup her data to
another drive but for some reason this file will only work in XP if you
are
signed in as admin. The users account settings are set EXACTLY as the
admins settings (computer administrator) so this doesn't make any sense
to
me?

the dos command is as follows:

xcopy "g:\dina\*.*" "e:\house back up\dina\" /s

any assistance is greatly appreceiated.
-Steve

Start a Command Prompt (Start / Run / cmd {OK}), then
run your batch file and report what you see on the screen.
 
Have you checked file permissions on the destinations and sources? If
the User is a member of any groups have you made sure one groups
permissions aren't overiding another? Is Command Prompt disabled in
Group Policy?

Mr C.

(e-mail address removed) pretended :
 
This is a stand alone computer with 3 users set up as computer
administrators. im not sure how to check if the members are in any
groups and permissions??? we just installed xp and didn't set up any
groups intentionally.

please advise
 
i get an error message saying ' can't create a file when that file
already exists. I have run this .bat file eariler without any problem.
So i guess the question now is what is the command line to over write
the existing file with the new file???

Thanks for your help
 
i get an error message saying ' can't create a file when that file
already exists. I have run this .bat file eariler without any problem.
So i guess the question now is what is the command line to over write
the existing file with the new file???

Thanks for your help
 
i get an error message saying ' can't create a file when that file
already exists. I have run this .bat file eariler without any problem.
So i guess the question now is what is the command line to over write
the existing file with the new file???

Thanks for your help

Add the /y switch to your command. If the problem persists
then you're probably trying to overwrite a folder with a file.
 
Right click the folders and select Properties. If there is a security
tab there click that and see if the users who need access are listed.
If not Add them and tick the necessary box for Full, Modify etc.
depending on what you want them to do in there.

Mr C.

(e-mail address removed) was thinking very hard :
 
Please explain how to ad the /y switch - i don't know what that means.
and the i am trying to overwrite a folder which has many files in it.

thanks
 
Please explain how to ad the /y switch - i don't know what that means.
and the i am trying to overwrite a folder which has many files in it.

thanks

I strongly recommend that you start a Command Prompt
(Start / Run / cmd {OK}) and type this command:

xcopy /?

This will show you each and every switch for the xcopy command,
including the /y switch. You already use the /s switch, so adding
the /y switch appears trivial.
 
Back
Top