Windows 7 Forums


Windows 7: Failed batch file

01 Jun 2010  
blockie

W7 Ultimate
416 posts
in Assied Living facility, Fresno, Calif
 
 
Failed batch file

Attached is a jpeg picture of the command window when I attempt to make an image of my System drive. Why can't the shared drive be found?

Attached Thumbnails
Failed batch file-capture.jpg  
My System SpecsSystem Spec

01 Jun 2010  
Sbrideau

Windows 7 Pro x64 & Fedora 16 (64bit)
185 posts
Bathurst
 
 

Are you sure you have the right path for it?
My System SpecsSystem Spec
01 Jun 2010  
blockie

W7 Ultimate
416 posts
in Assied Living facility, Fresno, Calif
 
 

I believe it to be correct. However, I understand it should be run in "elevated command mode". How do I execute a batch file in elevated mode. Eventually i wish to use the scheduler.
My System SpecsSystem Spec
.


01 Jun 2010  
Ztruker

Windows 7 Pro X64
3,616 posts
Space Coast of Florida
 
 

Click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
My System SpecsSystem Spec
02 Jun 2010  
Sbrideau

Windows 7 Pro x64 & Fedora 16 (64bit)
185 posts
Bathurst
 
 

Or just right-click on the batch file and run as administrator.
My System SpecsSystem Spec
03 Jun 2010  
Ztruker

Windows 7 Pro X64
3,616 posts
Space Coast of Florida
 
 

Hmmm, you could also right click on the batch file, select Properties then click on the Compatibility tab. Check the box that says Run this program as administrator. Then any time you ran it it was run with Administrator privileges. That would also allow you to schedule it to run, but there I think you can specify how to run it.
My System SpecsSystem Spec
07 Jun 2010  
blockie

W7 Ultimate
416 posts
in Assied Living facility, Fresno, Calif
 
 

The Run as Administrator is grayed out I can't check it. However when I do run it as admin. it still can't find drive D:.
My System SpecsSystem Spec
08 Jun 2010  
Ztruker

Windows 7 Pro X64
3,616 posts
Space Coast of Florida
 
 

Does the Images folder already exist? If not that is perhaps what it is complaining about.

From a Command Prompt, enter:

dir \\william-pc\d\images

Does that work? What about:

dir \\william-pc\d
My System SpecsSystem Spec
09 Jun 2010  
blockie

W7 Ultimate
416 posts
in Assied Living facility, Fresno, Calif
 
 

I get the error that the network name cannot be found.
My System SpecsSystem Spec
10 Jun 2010  
Ztruker

Windows 7 Pro X64
3,616 posts
Space Coast of Florida
 
 

What do you see if you issue

net view \\william-pc

That should return the list of shares defined for the computer named william-pc.
My System SpecsSystem Spec
Reply

 Failed batch file problems?



Thread Tools



Similar help and support threads for: Failed batch file
Thread Forum
Solved batch file General Discussion
Solved Batch File that grabs file names from folder to insert into batch file General Discussion
Help required creating batch file to read .csv file General Discussion
batch file open file for program in the startup folder General Discussion
How to create a batch file that will move files based on the file type General Discussion


All times are GMT -5. The time now is 03:15 AM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd