Windows 10: Batch File

Discus and support Batch File in Windows 10 Support to solve the problem; I need a batch file to create a folder with sub folders. The sub folders will be named the current date, they will go in a folder on c drive. For... Discussion in 'Windows 10 Support' started by zplugger, May 28, 2020.

  1. zplugger Win User

    Batch File


    I need a batch file to create a folder with sub folders. The sub folders will be named the current date, they will go in a folder on c drive. For example we can call the folder test and it would be in documents on c drive. Every time we run the batch file it would create a sub folder with current date.

    :)
     
    zplugger, May 28, 2020
    #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, May 28, 2020
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, May 28, 2020
    #3
  4. Steevo Win User

    Batch File

    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, May 28, 2020
    #4
Thema:

Batch File

Loading...
  1. Batch File - Similar Threads - Batch File

  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

Users found this page by searching for:

  1. batch file to sleep windows 10