Windows 10: problem saving .bat file

Discus and support problem saving .bat file in Windows 10 Support to solve the problem; I still use them too, but use Notepad (no formatting in .bat files) and when going to save simply enclose the File name with quotes so it doesn't save... Discussion in 'Windows 10 Support' started by jalea148, Nov 4, 2016.

  1. Berton Win User

    problem saving .bat file


    Agreed, word processors such as Wordpad, Word, WordPro, WordPerfect, WordStar, etc., tend to have hidden formatting while Notepad is just plain text. Some of the Notepad replacements may also not be just plain text. It's all about the formatting of the text, sentences, paragraphs, etc.
     
    Berton, Nov 5, 2016
    #16
  2. bro67 Win User

    TechnoMage DOS is not deeply buried into Windows 10. It has not existed since XP. There is the Command Line Interpreter that is very limited. Batch files have been gone sone XP when scripts started to be used to handle stuff.
     
    bro67, Nov 6, 2016
    #17
  3. bro67 Win User
    Batch files do not make your system get infected. They are basically a restricted Macro that you have the file run a set process.
     
    bro67, Nov 6, 2016
    #18
  4. bro67 Win User

    problem saving .bat file

    No one uses Batch files anymore. They are holdovers from the DOS days for those who continue trying to use them instead of using Scripts which have been used since XP came out. If you are still living in the days of past, there is some training that needs to be done to show you how much more powerful scripts can be.
     
    bro67, Nov 6, 2016
    #19
  5. fdegrove Win User
    Hi,
    @bro67:

    This is the second time you reply to the same post. It does not make your statement any more "right" because you are wrong.
    Just let it go. Moreover it's complete off topic anyway.

    Cheers, *Wink
     
    fdegrove, Nov 6, 2016
    #20
  6. Kari Win User
    I've been called with many names. My ex-wives call me an idiot, a chauvinistic male pig, a**hole and so on. Quite often the natives in my adopted home country call me "bloody foreigner", my doctor calls me stupid for not doing as he tells me.

    But: You are the first one calling me "no one". I'd rather hear the names mentioned above because at least they mean I am someone.
     
  7. bro67 Win User
    I never got the message that everyone has to go through you first before they post. The only thing off topic is you trying to tell people that they do not have the right to post on a thread and state fact that no one is using batch files anymore since XP.
     
    bro67, Nov 6, 2016
    #22
  8. problem saving .bat file

    Man I didnt mean to start a flame war! I just resent them as Ive gotten most .bats from scammer/adware infecting low lives on email attachments. Obviously I don't download them.

    I come in peace.
     
    Bright Eyes, Nov 6, 2016
    #23
  9. bro67 Win User
    If you got a batch file from adware or a scam email, that is not the fault of the Operating System or the website. It is just the user not making sure that their system uses layered protection.

    I have yet to see anyone get a Batch file that infects their system. With Windows 10, .bat and .cmd files will not run unless you start removing safeguards. The same thing with Mac OS-X in how Apple has layered their OS security so that something a user tries to run, the security protocols in OS-X will not let it.

    What people are doing with Batch files these days is beyond what they were originally used for. People are treating them as if they are an actual program, while also allowing stuff like Perl and Java programs to run. In that nature, having the ability of letting the batch file run something that can damage the OS is why we now use scripts. Scripts have better safeguards and if there is something wrong, they will not be allowed to go any further.

    If people would start letting go of their old habits and start moving to how things should be done with modern operating systems, we would not have a lot of issues.

    Seeing a lot of people that are so used to Windows, now treating Linux as if it is Windows. The worse thing I have seen is using Python to run a Python script to mount a file share, which takes longer and can fail, than just doing it as it has always been done through Fstab.

    If you look at the link I posted earlier and start following those ways, you will find that your life will be a whole lot easier.
     
    bro67, Nov 6, 2016
    #24
  10. Thanks for all the info bro67.
     
    Bright Eyes, Nov 6, 2016
    #25
  11. fdegrove Win User
    Hi,

    I was only letting you know you had already replied to the same post.
    See post #9 on page 1.

    BTW even MS has put batch files in Windows 10 so your so called fact isn't exactly true.

    Cheers, *Wink
     
    fdegrove, Nov 6, 2016
    #26
  12. bro67 Win User
    I got back into going back and catching up on stuff since I have been retired due to a bad back. I was stuck in a lot of bad habits when it came to doing things how they were done over 16 years ago. Linux has been a more strong point than Windows, because I am dealing with it from the non-gui installation, in which everything is done from a Command Line and you get to understand more about the OS.

    If more people started reading up and learning how to use Powershell scripts. We would not see as many issues. Same as those who go mucking about in the registry, but never make a backup in case they hose it up.

    Bash scripts are great things when it comes to having jobs run for certain reasons. That is where Linux gets its strong point vs. Windows. NT came about from Gates buying up CP/M & MP/M from Digital Research. That was because IBM would not sell them the rights to use OS/2.

    With these forums starting to get a lot of people using the newer OS's. You are going to start seeing a lot of confusion about stuff that the majority of us have been doing for over 20 to 30 years. The Tutorials on here are filled with a lot of really good info, same as Microsoft's technet.

    Now with some who feel that they should be the only one handing out information and when they are called on it not being correct, you see the outcome of it. If that person handing out the incorrect info confesses and goes out to double check and apologize, which all of us have done because it is not about pride, it is about being human and sometimes you have other things on your mind and do not give all needed.
     
    bro67, Apr 4, 2018
    #27
Thema:

problem saving .bat file

Loading...
  1. problem saving .bat file - Similar Threads - problem saving bat

  2. .bat file problem

    in Windows 10 Software and Apps
    .bat file problem: Hello, I've been having a problem opening a .bat file on my PC. Whenever I try to open it, it always gives me "This app can't run on your PC." how can I fix this? https://answers.microsoft.com/en-us/windows/forum/all/bat-file-problem/b7cb5670-5d91-4e47-8898-3895f18f3531
  3. .bat file problem

    in Windows 10 Gaming
    .bat file problem: Hello, I've been having a problem opening a .bat file on my PC. Whenever I try to open it, it always gives me "This app can't run on your PC." how can I fix this? https://answers.microsoft.com/en-us/windows/forum/all/bat-file-problem/b7cb5670-5d91-4e47-8898-3895f18f3531
  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

    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.....
  9. Task Scheduler and Bat File Problem

    in Windows 10 Support
    Task Scheduler and Bat File Problem: Hi, Not sure which forum to post this in, but hopefully someone has some insight and can help me with this. I have a simple .bat file that stops my media server, creates an archive of a folder (for backup purposes), and then starts the media server again. It works...
  10. File association problem with .reg and .bat files

    in Windows 10 Support
    File association problem with .reg and .bat files: Asus laptop with WINDOWS 10 When double clicking a .reg file the default action is merge by running the regedit.exe. On the right-click content menu I have Merge (in bold), edit and print, select edit opens the notepad for editing. In order to prevent from merging the .reg...