Failed batch file

Page 2 of 2 FirstFirst 12

  1. Posts : 1,020
    Windows 7 Ultimate 64 bit
       #11

    Hi blockie,

    blockie said:
    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
    blockie said:
    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 Attached Thumbnails Failed batch file-shortcut.png   Failed batch file-explorer-path.png  
    Last edited by TimStitt; 10 Jun 2010 at 22:05. Reason: Attachments failed.
      My Computer


  2. Posts : 605
    W7 Ultimate
    Thread Starter
       #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 Computer


  3. Posts : 605
    W7 Ultimate
    Thread Starter
       #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?
    Last edited by blockie; 11 Jun 2010 at 11:58. Reason: add info
      My Computer


  4. Posts : 1,020
    Windows 7 Ultimate 64 bit
       #14

    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 Computer


  5. Posts : 605
    W7 Ultimate
    Thread Starter
       #15

    I found that D drive was not shared. Once shared it showed up in net--view.
    Thanks.
      My Computer


  6. Posts : 1,020
    Windows 7 Ultimate 64 bit
       #16

    blockie said:
    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 Computer


  7. Posts : 605
    W7 Ultimate
    Thread Starter
       #17

    As soon as I got D drive shared net view saw it.
      My Computer


  8. Posts : 6,285
    Windows 10 Pro X64
       #18

    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 Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About 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 11:58.
Find Us