Win 7 .Bat installation advise / help


  1. Posts : 1
    Windows 7 Enterprise Edition
       #1

    Win 7 .Bat installation advise / help


    Hi All,

    I have a .bat file which is working on XP but i cannot seem to get it installed on Windows 7.

    This is what the.bat file is doing :
    xcopy "O:\Consulting Briefcase\*.*" C:\ProgramData\consulting briefcase\" /s /e /h /y

    As you can see it's getting a copy from my O: drive and saving the files to the C:**** location

    But it's not saving - even when i run as admin.

    Can someone advise is this the correct location to save Windows 7 install / data files?

    Thanks in advance,
    Ket
      My Computer


  2. Posts : 3,371
    W10 Pro desktop, W11 laptop, W11 Pro tablet (all 64-bit)
       #2

    Do you get an error when you attempt to run the .bat file?

    Several things to check. Do you have an O: drive defined? There is a missing " from the xcopy command, is that a typo or is it missing in the .bat file too?

    Where do you have the .bat file saved on your computer? Are you trying to run it from the same folder as where it is saved? If not, is the folder that contains the .bat file listed in your PATH environment variable?
      My Computer


  3. Posts : 6,285
    Windows 10 Pro X64
       #3

    Open an Elevated Command Prompt and run the command from there, not via a batch file.

    xcopy "O:\Consulting Briefcase\*.*" "C:\ProgramData\consulting briefcase\" /s /e /h /y

    What response do you get?
      My Computer


 

  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 21:05.
Find Us