Can no longer run batch files unless as administrator


  1. Posts : 10
    Windows 7 Home Premium 64-bit
       #1

    Can no longer run batch files unless as administrator


    Windows 7 64-bit Home Premium - Dell 660 w/i5 Intel - 8GB RAM

    I've been running the same batch files for several years with the same login account. Now, all of a sudden, I have to run them as administrator. My personal account already is an 'administrator' and not a standard user account.

    These batch files are for various backups I make daily and all use the 'robocopy' command. Why, now, do I have to right-click a batch file and run it as administrator when I never had to before? I haven't had any recent updates to Windows. Not that big a deal but my curiosity is piqued.
      My Computer


  2. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #2

    Check post #5 and post #23 in this thread.

    Can't run .bat files

    Maybe it solves your problem?
      My Computer


  3. Posts : 10
    Windows 7 Home Premium 64-bit
    Thread Starter
       #3

    Post #5 was essentially the same issue. Reading on to post #8 got me to thinking though. I had set the PATH command to be able to run SCANPST.EXE to repair some Outlook 2010 .PST files and Windows could never find the SCANPST.EXE file when running the OLFix Outlook-Reperatur.exe program so I had set the path to the location of SCANPST.EXE.

    For some reason I could run the batch files by running them as administrator but not by double-clicking the batch file itself. Apparently Windows wasn't finding the 'robocopy.exe' program due to the PATH variable being set. Remove the PATH entry, rebooted, and now it's working fine.

    Guess I'll just have to remember that when/if I ever need to fix an Outlook .PST file again.

    Thanks for the help.
      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 05:12.
Find Us