Windows 10: .bat files changed?

Discus and support .bat files changed? in Windows 10 Ask Insider to solve the problem; Greetings. Regarding Windows 10. I have a .bat file that I've used for... well, since forever. It rarely changes and it hasn't changed in months.... Discussion in 'Windows 10 Ask Insider' started by /u/DrkNetNerd, Nov 4, 2019.

  1. .bat files changed?


    Greetings.

    Regarding Windows 10.

    I have a .bat file that I've used for... well, since forever. It rarely changes and it hasn't changed in months. Despite running quite fine in its current incarnation for some months now it's quite recently it's began throwing the error: "The syntax of the command is incorrect".

    So I checked and it's failing on two commands:

    if exist "path:\to\directory" (

    various indented lines of blahblah

    )

    and

    for /F %f in ('dir /b /s') do blahblahblah

    Specifically, the IF EXIST and FOR commands are throwing the errors, not what's inside of them to do.

    I can paste these lines into a command prompt (either admin or not admin) and they execute successfully. If they run from a .bat file, however, it throws the aforementioned error.

    Has something changed in Windows 10?

    If so, how can I make this .bat file run again?

    If not, what would cause this to suddenly happen?

    Thank you for your time.

    ("use powershell", some may say. "I don't know powershell", I says)

    edit: I just realized how unclear my title is but I can't edit the title. Sorry folks.

    submitted by /u/DrkNetNerd
    [link] [comments]

    :)
     
    /u/DrkNetNerd, Nov 4, 2019
    #1

  2. Updating .bat File, Removing Default Apps


    Hi SightUp.

    Don't have a bat file but step 4 in Option 2 will give you complete list and you can mod yours.

    Uninstall Apps in Windows 10


    Ken
     
    Caledon Ken, Nov 4, 2019
    #2
  3. Lucasonas Win User
    BAT file/Script to find and replace files

    FordGT90Concept!!!

    Your attachment is very close, it kept all the 5 numerals intact, but like you said: "it will rename them all from "#_Example_720p.zip" to "RAT_Example_#_24f_ONO.zip"...

    Greetings, Streetfighter 2

    I can't seem to get the BAT to work, but I'll still keep on trying.


    Any other suggestions, or BAT scripts Streetfighter & FordGT90Concept?
     
    Lucasonas, Nov 4, 2019
    #3
  4. dark2099 Win User

    .bat files changed?

    Generating a .txt based file list in Windows 7

    I want to be able to generate a .txt file that lists all the files and folders in a specific folder on my PC, but don't know the name of any programs that do that. Searched on google a bit and came up with this guide, but it's for XP and I can't seem to find some of the folder options to modify the .bat file. Any suggestions? Thanks

    http://www.theeldergeek.com/file_list_generator.htm

    EDIT: The .bat file will do what I want if it is in the folder I want to do it in, but the option I want to add is having the right click option that it shows.
     
    dark2099, Nov 4, 2019
    #4
Thema:

.bat files changed?

Loading...
  1. .bat files changed? - Similar Threads - bat files changed

  2. Need to change file to .bat

    in Windows 10 Gaming
    Need to change file to .bat: I made a new text document and named it run.bat but it didn't change to a .bat file. https://answers.microsoft.com/en-us/windows/forum/all/need-to-change-file-to-bat/a303183b-1c61-48e0-84d1-be33a6fb2374
  3. Need to change file to .bat

    in Windows 10 Software and Apps
    Need to change file to .bat: I made a new text document and named it run.bat but it didn't change to a .bat file. https://answers.microsoft.com/en-us/windows/forum/all/need-to-change-file-to-bat/a303183b-1c61-48e0-84d1-be33a6fb2374
  4. Bat file

    in Windows 10 Gaming
    Bat file: I have a bat fileI am improving it bit by bit till I have reached But not i have added a warning to it before a commandI now want to make that line font size Bigger than the others How can I do that ??So here is the Batch file content@ECHO OFF echo...
  5. Bat file

    in Windows 10 Software and Apps
    Bat file: I have a bat fileI am improving it bit by bit till I have reached But not i have added a warning to it before a commandI now want to make that line font size Bigger than the others How can I do that ??So here is the Batch file content@ECHO OFF echo...
  6. .bat files

    in Windows 10 Network and Sharing
    .bat files: So i am trying to make a minecraft server and need to open a .bat file but i keep getting a error saying "This app can not run on this pc" But it worked a month ago i need a solution please....
  7. Bat file

    in Windows 10 Ask Insider
    Bat file: Good morning/evening/night, I wanted to create a batch file or an exe that can change options inside the gui of an application (the application is cisco webex) (if you are familliar with webex i want to change the audio or turn it to music mode witha batch file) but i am...
  8. BAT file to change some display settings?

    in Windows 10 Ask Insider
    BAT file to change some display settings?: I have an interesting situation where I use Parsec a bunch, but to do so I have to disable HDR and change the resolution of my monitor, as well as disabling all but my main. I was wondering if there is there a bunch of commands I can smash into a BAT file to changes these...
  9. .bat file

    in Windows 10 Customization
    .bat file: I have .bat file it is not working in my new PC when I double click on it. but it was working in my old PC. could your please support how to associate .bat file in windows 10? Kindly looking for your support and reply in this regards. Thanks.....
  10. Bat File to change notepad text

    in Windows 10 Support
    Bat File to change notepad text: Hi, I've been trying to make a batch file to change a line fo text in a .txt file, to the .bat files current directory. for example running it would produce this result: Run .Bat line of text in file changes to the current directory of .bat Anyone know any help with...