Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Batch file copy

Reply
Thread Tools Display Modes

Batch file copy

 
 
EruditeBonnie
Guest
Posts: n/a

 
      09-19-2007
I have short cut to a batch file that copies files from a network server to
the local machine. It works fine on XP, but it won't work on Vista Home.
I've tried right clicking on the short cut and saying "Run as Administrator"
and that doesn't work either. When I open a DOS prompt window and type the
copy command there, I get an "Access Denied" error. So I'm guessing the
batch file is executing properly, it's just failing on all the copy commands.
I CAN manually drag and drop the files from the server to the local machine
- I just want a way to do it automatically through a batch file.

I don't normally use Vista, so I may be missing something fairly basic here.
Sorry, if that's the case.

 
Reply With Quote
 
 
 
 
Andrew McLaren
Guest
Posts: n/a

 
      09-19-2007
"EruditeBonnie" <> wrote ...
> and that doesn't work either. When I open a DOS prompt window and type
> the
> copy command there, I get an "Access Denied" error. So I'm guessing the
> batch file is executing properly, it's just failing on all the copy
> commands.


Hi Bonnie,

What happens if you right-click on the Command Prompt icon and choose "run
as Administrator", and run the batch file from an Administrative command
prompt? Do you still get "Access Denied"?

(doesn't solve your problem, but might help understand it better).

Where are you copying the files to, on the local machine? Some locations are
highly protected on Vista, to protect against viruses etc.

Other locations are actually junction point aliases, for locations which
have changed in Vista. For example on XP the user has a directory called
"%UserProfile%\My Documents". On Vista, this has changed to
"%UserProfile%\Documents". There is a file system object called "My
Documents" on Vista but it isn't a real directory, it's a junction point
that points towards the Documents directory. If you try to read or write to
My Documents directly, you'll get "Access denied". In this case, you'd need
to change the batch file to copy to "%UserProfile%\Documents" instead.

Vista starts to make sense, after a while ... first 2 or 3 years are the
hardest, it gets easier after that ...

--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
batch file help DarthRevan561 Windows Vista General Discussion 6 02-02-2008 12:00 AM
Batch file Bob Windows Vista General Discussion 2 01-20-2008 12:39 PM
Batch file Bob Windows Vista File Management 0 01-06-2008 07:39 PM
batch file calling exe file problem JPS Windows Vista Security 1 12-20-2007 12:18 AM
Need help with batch file n o s p a m p l e a s e Windows Vista General Discussion 11 10-14-2007 06:35 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59