Windows 10: Batch Files

Discus and support Batch Files in Windows 10 Software and Apps to solve the problem; How do i make it that my batch file puts itself in to startup... Discussion in 'Windows 10 Software and Apps' 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. 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
  3. 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
  4. 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=/"...
  5. 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=/"...
  6. 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]...
  7. 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...
  8. Having the output from a command within a batch file in a different color

    in Windows 10 Software and Apps
    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...
  9. In native windows 11 installation do not allow to run batch file from shared network folder.

    in Windows 10 Gaming
    In native windows 11 installation do not allow to run batch file from shared network folder.: This program is blocked by group policy. For more information, contact your system administrator. https://answers.microsoft.com/en-us/windows/forum/all/in-native-windows-11-installation-do-not-allow-to/e84ed4ca-c726-4a7e-a7c8-b9f878e382b6
  10. In native windows 11 installation do not allow to run batch file from shared network folder.

    in Windows 10 Software and Apps
    In native windows 11 installation do not allow to run batch file from shared network folder.: This program is blocked by group policy. For more information, contact your system administrator. https://answers.microsoft.com/en-us/windows/forum/all/in-native-windows-11-installation-do-not-allow-to/e84ed4ca-c726-4a7e-a7c8-b9f878e382b6