Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Failed batch file


01 Jun 2010   #1

 
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   #2

Windows 7 Pro x64
 
 

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

 

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   #4

Windows 8 Core X64
 
 

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

Windows 7 Pro x64
 
 

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

Windows 8 Core X64
 
 

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   #7

 

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   #8

Windows 8 Core X64
 
 

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   #9

 

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

Windows 8 Core X64
 
 

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




Thread Tools




Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 03:09 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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