Windows 10: Batch Files

Discus and support Batch Files in Windows 10 Gaming to solve the problem; How do i make it that my batch file puts itself in to startup... Discussion in 'Windows 10 Gaming' started by Iamdaniel_15, Mar 11, 2022.

  1. Batch Files


    How do i make it that my batch file puts itself in to startup

    :)
     
    Iamdaniel_15, Mar 11, 2022
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Mar 11, 2022
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Mar 11, 2022
    #3
  4. Steevo Win User

    Batch Files

    Batch file to ping network

    No, batch files are extremely easy.

    A "If" requires three extra steps.

    Code is not how much you can put in, but how lite can you make it and still perform the functions.

    So

    @ echo off


    ping 1.4.1.4 >a.txt

    findstr /m "Request timed out" a.txt
    if %errorlevel%%==0 (
    echo Save our nets!!!
    )

    pause
     
    Steevo, Mar 11, 2022
    #4
Thema:

Batch Files

Loading...
  1. Batch Files - Similar Threads - Batch Files

  2. Why do I get "access denied" when I try to run commands from file through a batch script?

    in Windows 10 BSOD Crashes and Debugging
    Why do I get "access denied" when I try to run commands from file through a batch script?: I am trying to write a script that should run some commands from a file specifically commands for pg_dump and pg_restore, or backup and restore of Postgres database, but I am receiving an "access denied" output.The script looks like this:@echo offrem enters postgres directory...
  3. Why do I get "access denied" when I try to run commands from file through a batch script?

    in Windows 10 Gaming
    Why do I get "access denied" when I try to run commands from file through a batch script?: I am trying to write a script that should run some commands from a file specifically commands for pg_dump and pg_restore, or backup and restore of Postgres database, but I am receiving an "access denied" output.The script looks like this:@echo offrem enters postgres directory...
  4. Why do I get "access denied" when I try to run commands from file through a batch script?

    in Windows 10 Software and Apps
    Why do I get "access denied" when I try to run commands from file through a batch script?: I am trying to write a script that should run some commands from a file specifically commands for pg_dump and pg_restore, or backup and restore of Postgres database, but I am receiving an "access denied" output.The script looks like this:@echo offrem enters postgres directory...
  5. What word is used for internal command or operable program or batch file

    in Windows 10 Gaming
    What word is used for internal command or operable program or batch file: I want to set the command program on my laptop https://answers.microsoft.com/en-us/windows/forum/all/what-word-is-used-for-internal-command-or-operable/6ede701f-e0a3-49b2-8631-c7290604db2c
  6. What word is used for internal command or operable program or batch file

    in Windows 10 Software and Apps
    What word is used for internal command or operable program or batch file: I want to set the command program on my laptop https://answers.microsoft.com/en-us/windows/forum/all/what-word-is-used-for-internal-command-or-operable/6ede701f-e0a3-49b2-8631-c7290604db2c
  7. Deleting files using a batch file

    in Windows 10 Gaming
    Deleting files using a batch file: I created a batch file using AI to delete files older than 3 months from a specific folder but the code I received does not work:. Files are dated in DD/MM/YYYY format in the folder.@echo offset "folder=C:\Users\CC\Documents\0Temp"set "cutoffdate="for /f "tokens=1-3 delims=/"...
  8. Deleting files using a batch file

    in Windows 10 Software and Apps
    Deleting files using a batch file: I created a batch file using AI to delete files older than 3 months from a specific folder but the code I received does not work:. Files are dated in DD/MM/YYYY format in the folder.@echo offset "folder=C:\Users\CC\Documents\0Temp"set "cutoffdate="for /f "tokens=1-3 delims=/"...
  9. Batch file to change screen timeout?

    in Windows 10 Ask Insider
    Batch file to change screen timeout?: Would anyone know if it's possible to write a batch file that can modify the minutes before screens turn off? I can find one for Windows sleep, but not specifically only the screen timeout. submitted by /u/Logical-Midnight6699 [link] [comments]...
  10. Having the output from a command within a batch file in a different color

    in Windows 10 Gaming
    Having the output from a command within a batch file in a different color: Hello. I am preparing to run the following script on one of our servers: REM Launch the batch files listed below to start the Exceed X environment, REM and log into the mcrs3 server using the putty application. REM List the hostname of the server that is being connected to by...