Windows 10: Bat file automatically close?

Discus and support Bat file automatically close? in Windows 10 Support to solve the problem; when i execute the bat file i get a window this window should be closed after 5 seconds if no interaction with the window was done Does anybody know... Discussion in 'Windows 10 Support' started by Nico20058septem, Sep 11, 2020.

  1. Bat file automatically close?


    when i execute the bat file i get a window this window should be closed after 5 seconds if no interaction with the window was done

    Does anybody know how to do this?

    :)
     
    Nico20058septem, Sep 11, 2020
    #1
  2. 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, Sep 11, 2020
    #2
  3. sc00VN Win User
    .bat file

    A batch file (.bat extension) is basically a series of commands to be executed by the command-line interpreter. When you open the file, your system runs every command stored in the file from top to bottom, once the final command has been executed, it closes
    itself indicating it has finished its job. However, everything happens so fast you think it closes immediately and that's completely normal.

    If you want the command-line interpreter window to remains open once the last command has been executed, I suggest you do the following:

    - Right click on the .bat file and click on the 'edit' button.

    - It will open a notepad displaying a series of commands.

    - Create a new line by hitting enter after the final text and type in 'pause' without quotes.

    - Save the file and run it. This time the window will remain open.
     
    sc00VN, Sep 11, 2020
    #3
  4. Bairn_966 Win User

    Bat file automatically close?

    Formating a Windows 10 .bat file.

    At present and indeed since purchasing this computer, that has a front panel which lights up with LED, to be honest is most annoying and distracting. Computer, has a software which should control the LED or select OFF. To cut story short, this software fails
    with the off, but can set off by clicking Phoenix icon, which opens a window, allowing to click the off position, however it is required to click this icon at each start of computer. What I am trying to obtain, suggest a .bat file to do this step automatically
    as to my at present clicking this icon an d selecting the LED off position. I have tried without success ;

    @Echo off

    title close Phoenix Control {name of icon)

    echo closing

    rd /s /q C:\$Phoenix

    Shut down Phoenix /I

    As said I know nothing in how to compose a .bat file. I thought in seeking help from this Forum, and if indeed, this can be done. Thank you, Bairn
     
    Bairn_966, Sep 11, 2020
    #4
Thema:

Bat file automatically close?

Loading...
  1. Bat file automatically close? - Similar Threads - Bat file automatically

  2. Automatically close CMD window after .bat file finishes?

    in Windows 10 Ask Insider
    Automatically close CMD window after .bat file finishes?: I've got a little batch file I use to open two programs with one shortcut, and while it works, the CMD window remains open until I manually close it. There is an "exit" at the end, and I've googled for solutions for this but none of them worked. @Echo off cd C:\Program...
  3. Read a file in a bat file

    in Windows 10 Support
    Read a file in a bat file: I have to read a file thru a bat file and get the date in the file. Once I get the date, I need it to be passed to be appended to another file. 160503
  4. Wait in .bat file

    in Windows 10 Ask Insider
    Wait in .bat file: How do I insert a wait command? I have several commands in this .bat file. I am finding some error out if they go too quickly. So here is what I would like to do. CMD 1 <Wait 5 Seconds> CMD 2 <Wait 5 Seconds> CMD 3 I do not know if this matters or not, but the...
  5. .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.....
  6. File Explorer window closing automatically

    in Windows 10 BSOD Crashes and Debugging
    File Explorer window closing automatically: I always use file explorer (used to be windows explorer). Anyhow, after opening the file explorer, it closes by itself after 30 minutes or so. Any solution of disabling it? I have Windows 10 Pro. ***Original title: file explorer/window explorer closes by itself***...
  7. .bat files changed?

    in Windows 10 Ask Insider
    .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:...
  8. Windows .bat File

    in Windows 10 Network and Sharing
    Windows .bat File: I have a .bat file on a pc that is supposed to get and send a file to and from a server. This .bat file is working properly when I run it on the pc but will not when trying to run it through a 3rd party software. there have been no errors, the .bat file will start to run but...
  9. Help with a .bat file.

    in Windows 10 Support
    Help with a .bat file.: I have this .bat file that I've been messing around with: [img] I got it to open the Windows Update interface: [img] However, I need the .bat file to go a step further and auto click the Check for updates button circled in orange. Can someone help me to finish...
  10. Automatic Closing of Settings

    in Windows 10 Customization
    Automatic Closing of Settings: I have a new Windows 10 Laptop. I am not the administrator so I use a local account. Every time I go into the settings to try to do something there is a period of about 10 to 15 seconds and then the app automatically closes. I had previously researched what to do, but I don't...