Windows 10: Batch commands

Discus and support Batch commands in Windows 10 Network and Sharing to solve the problem; I know this stuff is kind of old tech, but would anyone know how to make a script that goes through the contents of a folder or file and uses them as... Discussion in 'Windows 10 Network and Sharing' started by Peter STUDENT, Mar 10, 2020.

  1. Batch commands


    I know this stuff is kind of old tech, but would anyone know how to make a script that goes through the contents of a folder or file and uses them as command-line arguments say in pseudocode it might look something like:


    for each item in Desktop, copy %name% to D:\ a USB stick or something


    any help is much appreciated

    Peter

    :)
     
    Peter STUDENT, Mar 10, 2020
    #1
  2. Naki Win User

    GPU-Z what command line parameter ?

    Suggestion: /? (-?) and /help (-help) command-line arguments to show a list of all possible arguments in a small window. *Smile Batch commands :)
     
  3. ryanly Win User
    GPU-Z what command line parameter ?

    Current /? (-?) or / help (-help) parameter is invalid
     
    ryanly, Mar 10, 2020
    #3
  4. fatkatie Win User

    Batch commands

    Clear command prompt history from within batch.

    I have a batch, running in "Command Prompt", that prompts for a password. For any number of reasons I can't guarantee that the window will close before exposing that data (arrow keys browse history list).

    Is there a way to keep the password out of the list or is there a way to clear the list from within the batch itself?

    Thank you.
     
    fatkatie, Mar 10, 2020
    #4
Thema:

Batch commands

Loading...
  1. Batch commands - Similar Threads - Batch commands

  2. batch if command

    in Windows 10 Gaming
    batch if command: I guess this is the age of the bat scripts ---- this expression fails even if the computer name is fpe1002 — it is actualy FPE1002 if /I [%computername%] == [fpe1002] set sd=shd01 c:\Editors else set sd=but this express succeeds with the computer name as FPE1002 set...
  3. batch if command

    in Windows 10 Software and Apps
    batch if command: I guess this is the age of the bat scripts ---- this expression fails even if the computer name is fpe1002 — it is actualy FPE1002 if /I [%computername%] == [fpe1002] set sd=shd01 c:\Editors else set sd=but this express succeeds with the computer name as FPE1002 set...
  4. batch if command

    in Windows 10 Customization
    batch if command: I guess this is the age of the bat scripts ---- this expression fails even if the computer name is fpe1002 — it is actualy FPE1002 if /I [%computername%] == [fpe1002] set sd=shd01 c:\Editors else set sd=but this express succeeds with the computer name as FPE1002 set...
  5. 'netsh' is not recognized as an internal or external command, operable program or batch...

    in Windows 10 Software and Apps
    'netsh' is not recognized as an internal or external command, operable program or batch...: Does anyone know the fix to this? I just randomly opened my laptop one day and it started doing this.I've tried like most fixes I've seen on the internet so I just came here to see if anyone knows how to fix this....
  6. 'netsh' is not recognized as an internal or external command, operable program or batch...

    in Windows 10 Customization
    'netsh' is not recognized as an internal or external command, operable program or batch...: Does anyone know the fix to this? I just randomly opened my laptop one day and it started doing this.I've tried like most fixes I've seen on the internet so I just came here to see if anyone knows how to fix this....
  7. 'netsh' is not recognized as an internal or external command, operable program or batch...

    in Windows 10 Gaming
    'netsh' is not recognized as an internal or external command, operable program or batch...: Does anyone know the fix to this? I just randomly opened my laptop one day and it started doing this.I've tried like most fixes I've seen on the internet so I just came here to see if anyone knows how to fix this....
  8. 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...
  9. 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...
  10. 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...