.bat file working on one windows 10 computer but not another, just giv

Page 1 of 2 12 LastLast

  1. Posts : 8
    Windows 10
       #1

    .bat file working on one windows 10 computer but not another, just giv


    I have a .bat file that works fine when being run on my main pc, but on a laptop that I just did a fresh install of Windows 10 on, it does not work if I type it in and just gives me the error XXX is not a recognized as an internal or external command, operable program, or batch file. But if I double-click on the file itself, it opens as it should, but I need to add more to the command line after it to make it work properly.

    Does anyone know what is causing this, and what I can do to make it run? Is there some software that's missing?

    Thanks!
      My Computer


  2. Posts : 809
    Win10
       #2

    What is the file named and where is it located?
      My Computer


  3. Posts : 8,112
    windows 10
       #3

    Open a cmd prompt then type

    set

    the folders for path the file must be in one of those in order to be found and run if not you will have to give a full path to it
      My Computer


  4. Posts : 8
    Windows 10
    Thread Starter
       #4

    PolarNettles said:
    What is the file named and where is it located?
    its called download_all.bat its located in a folder on the desktop
      My Computer


  5. Posts : 8
    Windows 10
    Thread Starter
       #5

    Samuria said:
    Open a cmd prompt then type

    set

    the folders for path the file must be in one of those in order to be found and run if not you will have to give a full path to it
    How do I add it into there?
      My Computer


  6. Posts : 8,112
    windows 10
       #6

    just enter full path to run ie C:\Users\user\Desktop\download_all.bat
      My Computer


  7. Posts : 8
    Windows 10
    Thread Starter
       #7

    Samuria said:
    just enter full path to run ie C:\Users\user\Desktop\download_all.bat
    Same error. Did just as you said
      My Computer


  8. Posts : 809
    Win10
       #8

    Is Controlled Folder Access enabled? Change Windows Defender Controlled Folder Access Settings - Windows 10 Windows 10 Tutorials

    What if you move the batch file to C:\temp?
      My Computer


  9. Posts : 31,691
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #9

    Samuria said:
    just enter full path to run ie C:\Users\user\Desktop\download_all.bat
    cam2363 said:
    Same error. Did just as you said
    If you copied that command exactly as samuria wrote it and your name is not 'User' then it wouldn't work. Instead, try...
    %userprofile%\Desktop\download_all.bat
    ...which should work whatever account name you have.
      My Computers


  10. Posts : 8
    Windows 10
    Thread Starter
       #10

    Bree said:
    If you copied that command exactly as samuria wrote it and your name is not 'User' then it wouldn't work. Instead, try...
    %userprofile%\Desktop\download_all.bat
    ...which should work whatever account name you have.
    Ill try that, I did make it say my account name, so i dont think your idea is going to work, but ill give it a shot.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:16.
Find Us




Windows 10 Forums