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

10 Jun 2010   #11

Windows 7 Ultimate 64 bit
 
 

Hi blockie,

Quote   Quote: Originally Posted by blockie View Post
The Run as Administrator is grayed out
If you create a shortcut, you can then make it run as administrator on the shortcut tab (advanced options). This also has the added advantage of running in a separate memory space, so it is more secure and safer.

Re: the path
Quote   Quote: Originally Posted by blockie View Post
I believe it to be correct.
You can check this, by opening Windows Explorer (Windows+E on your keyboard)
and then typing the path \\William-PC\D\Images into the address bar an pressing enter. If it works (and the shared folder opens) then your path should be correct. Alternatively you can check it through an elevated command prompt by mapping it to a spare drive letter. E.g. Typing net use M: \\William-PC\D\Images will map it to the M: drive letter.

Some other thoughts:
- It's hard to tell from the screen print if your path is being read correctly. If you attach the script I'm happy to take a look for you. Also if there are any spaces in it, you may need to use quotes around the path. What is the correct path?
- Try mapping the shared location to a drive letter first, depending on the command you use in the script a UNC path may not be possible.


Good luck

-Tim




Attached Thumbnails
Failed batch file-shortcut.png  
Attached Images
 
My System SpecsSystem Spec
.

11 Jun 2010   #12

 

My backup drive d: was not on the network. Went to the drive properties and shared it. Now it is in there when I do a net view. Thanks. Now I'll go back and reevaluate a lot of my concerns regarding this drive
My System SpecsSystem Spec
11 Jun 2010   #13

 

Now that I shared and fooled around with users the original batch file works. However, the Restore image still cannot find an image. The image is in the root of D: drive. I point to D and the folder WindowsImageBackup is there, but cannot be found.

I then booted to the "Repair Disk" and it could not find the image. Tried to connect to the network and couldn't connect.

Now what?
My System SpecsSystem Spec
.


12 Jun 2010   #14

Windows 7 Ultimate 64 bit
 
 

Congrats on getting a few of your issues solved.

It's really hard to say what is happening with out more information. Perhaps you can post the script that you have written.

I'd look to ensure that any spaces paths are covered by putting the path in quotes and to include file extensions.

Also what format is the backup in?

RE: WindowsImageBackup is there, but cannot be found
- You said it's on the D drive, is that a local or network drive (from the computer that you are running the restore from)?
- Can you find this through the network under the same user?
- Also check the folder permissions and run the batch as an elevated admin user.

RE: The repair disk
- What are you using for this? is it a custom job? What OS is it?
- Is networking enabled on the repair disk? (it looks like it's not)
My System SpecsSystem Spec
12 Jun 2010   #15

 

I found that D drive was not shared. Once shared it showed up in net--view.
Thanks.
My System SpecsSystem Spec
12 Jun 2010   #16

Windows 7 Ultimate 64 bit
 
 

Quote   Quote: Originally Posted by blockie View Post
I found that D drive was not shared. Once shared it showed up in net--view.
Thanks.
It looks like your slowly getting through it.

It's always helpful to check your permissions and sharing through a good old \\TARGETPC\TARGETFOLDER in explorer.

Good luck with the rest of your project. Let us know if you're stuck again.
My System SpecsSystem Spec
13 Jun 2010   #17

 

As soon as I got D drive shared net view saw it.
My System SpecsSystem Spec
13 Jun 2010   #18

Windows 8 Core X64
 
 

net share is another good command to remember. It allows you to see exactly what shares are setup on a computer. That makes it easy to see if teh folder or drive you are trying to access from another computer is actually shared on the target computer.
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 02:07 PM.
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