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

Page 1 of 2 12 LastLast
  1.    25 Mar 2018 #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 ComputerSystem Spec

  2.    25 Mar 2018 #2

    What is the file named and where is it located?
      My ComputerSystem Spec

  3.    25 Mar 2018 #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 ComputerSystem Spec

  4.    25 Mar 2018 #4

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

  5.    25 Mar 2018 #5

    Samuria said: View Post
    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 ComputerSystem Spec

  6.    25 Mar 2018 #6

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

  7.    25 Mar 2018 #7

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

  8.    25 Mar 2018 #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 ComputerSystem Spec


  9. Posts : 8,042
    10 Home x64 (1803) (10 Pro on 2nd pc)
       25 Mar 2018 #9

    Samuria said: View Post
    just enter full path to run ie C:\Users\user\Desktop\download_all.bat
    cam2363 said: View Post
    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 ComputersSystem Spec

  10.    26 Mar 2018 #10

    Bree said: View Post
    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 ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
I'm thinking this should be easy, but it isn't turning out that way. Computer A is dying, has a current File History. I am setting up Computer B and I want to use File History on B to restore from A. Instead, B can't see A's File History and...
I am posting this on my wife's behalf, regarding her new ASUS Windows 10 computer, that I configured over the just-ended weekend. She is unable to copy (either ctrl/c or context menu) and paste (either ctrl/v or context menu) from something on a...
Hello all, I download a Windows 10 ISO File from https://www.tenforums.com/tutorials/9230-windows-10-iso-download.html ] and made a dvd, can I use this on any computer now or only on mine where it was created? Also, how do I remove the windows...
I can set an alias in the hosts file on a win7 machine and access it just fine but doing the same in Win10 prompts for creds that never work even when entered correctly. What did win10 change? hosts file entry: 127.0.0.1 hostname alias...
I am just going to say up front that I don't have the Pro version of Windows 10 so I have no Group Policy Editor otherwise I would have fixed this problem in less than a minute instead of wasting over a hour trying to fix this. I want to disable...
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 08:19.
Find Us