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
TimStitt

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
-shortcut.png  
Attached Images
 
My System SpecsSystem Spec
11 Jun 2010   #12
blockie

 

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
blockie

 

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
TimStitt

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
blockie

 

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
TimStitt

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
blockie

 

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

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





Similar help and support threads
Thread Forum
How can I write a batch file that opens a file in a program?
I wrote this batch file which does what I want it to do so far. @echo off "C:\Users\xxxxxx\Documents\HideTaskbar\HideTaskbar.exe" "C:\Program Files (x86)\VideoLANold\VLC\vlc.exe" "C:\Users\xxxxxx\Documents\HideTaskbar\ShowTaskbar.exe" exit
General Discussion
I need a batch file to open a random file within a certain folder/path
I want a batch to select and open a random link file in a folder i have. All the links are music videos I like to listen to, and I kind of want to just have an option for 'surprise me!'. I can change the file names if I have to, and I have a basic batch file ability. I know the simple commands,...
General Discussion
How to run a batch file at logoff & some batch scripting help please
Hiya, I'd just like to run a simple batch file at logoff to backup some settings. I plan to use Robocopy, which is what i use to more thorough backups. Two questions: 1. How make it run by clicking Start > Shutdown? (i realise i could make a shutdown batch file and run it instead, but i'd...
Backup and Restore
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
batch file open file for program in the startup folder
I have a computer that is a drone specifically for an outside LED sign. This computer is designed to never shut off and doesn't have any other program on it besides Operating System and the sign software. I need to create a batch file that I can place in the "start-up" folder that will open the...
General Discussion
How to create a batch file that will move files based on the file type
How to create a batch file that will move files based on the file type? My Requirement : I need a batch file to copy all .doc files in all my HardDisk to a removable disk say (Z: drive) . Can anyone make it possible using a batch file?Please...Its urgent...
General Discussion

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 19:35.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App