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
blockie

 
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
-capture.jpg  
My System SpecsSystem Spec
.
01 Jun 2010   #2
Sbrideau

Windows 7 Pro x64
 
 

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

 

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
Ztruker

Windows 10 Pro 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
Sbrideau

Windows 7 Pro x64
 
 

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

Windows 10 Pro 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
blockie

 

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
Ztruker

Windows 10 Pro 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
blockie

 

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

Windows 10 Pro 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





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 05:06.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App