Windows 10: Run CMD commands on different drives

Discus and support Run CMD commands on different drives in Windows 10 Support to solve the problem; Hi all, I launch cmd on Windows 10 (drive C:) and want to run the command attrib -s -h *.* /s /d from there on the drive E. How to accomplish this,... Discussion in 'Windows 10 Support' started by tomyfr, Jun 30, 2019.

  1. tomyfr Win User

    Run CMD commands on different drives


    Hi all,

    I launch cmd on Windows 10 (drive CRun CMD commands on different drives :) and want to run the command attrib -s -h *.* /s /d from there on the drive E. How to accomplish this, please?

    :)
     
    tomyfr, Jun 30, 2019
    #1
  2. tcebob Win User

    Can't run command in PowerShell but OK in Cmd


    I tried the suggested command and it does work manually in Power Shell. But Task Scheduler chokes on it.


    Run CMD commands on different drives [​IMG]


    If i say "Yes" it breaks up the command string to "%C:\program" with the rest of the command as an argument.
     
    tcebob, Jun 30, 2019
    #2
  3. Fernandz Win User
    How To Format A Write Protected Flash Memory ?

    ¿You already tried this one?...

    Run CMD


    1. diskpart
    2. list disk

    Then in the 3º step, put the correct number of disk in the list for the usb flash (if it's listed in disk 3, then you'll have to write select disk 3).

    2. select disk #
    3. clean
    4. create partition primary
    5. select partition 1
    6. active
    7. format fs=fat32
    8. assign
    9. exit

    with that commands you will format the flash drive in fat32, if you have a large drive you can select also "format fs=ntfs" in step 7.

    good luck!
     
    Fernandz, Jun 30, 2019
    #3
  4. Naki Win User

    Run CMD commands on different drives

    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 Run CMD commands on different drives :)
     
Thema:

Run CMD commands on different drives

Loading...
  1. Run CMD commands on different drives - Similar Threads - Run CMD commands

  2. Useful CMD commands (administrator)

    in Windows 10 BSOD Crashes and Debugging
    Useful CMD commands (administrator): Hello, Please send me all the CMD commands required for leptop and what role does CMD have in my order. I'm mentioning that on leptop I installed Windows 10 Home version 1809 Thank you! A wonderful day!...
  3. run,cmd not opening

    in Windows 10 Customization
    run,cmd not opening: i opened my start menu and in that i opened windows system in which there is no run and cmd options only taskmanager is present hoe to re insall run and cmd...
  4. need to run a cmd command as administrator within batch file

    in Windows 10 Customization
    need to run a cmd command as administrator within batch file: Hey, Probable pretty easy for some of you but after a bit of googling I can't quite figure it out. I need to run a command within CMD as administrator within a batch file which then users can just run. Any ideas would be great. Dan...
  5. What's the help command in drive X:\ (Recovery Drive) CMD Prompt?

    in Windows 10 Support
    What's the help command in drive X:\ (Recovery Drive) CMD Prompt?: Does the HELP, /?, /help or ? work in the CMD Prompt of Drive X:\ (Windows Recovery Environment on Windows 10)? It doesn't on my computer, concerned it might be tampering if not simply a quirk of Windows RE. 99995
  6. How do i run cmd with commands already executed!

    in Windows 10 Support
    How do i run cmd with commands already executed!: OK say I wanted to run a cmd (I know I will have to use notepad so im pretty much asking the command and ending of the command ex. CMD.bat) For those that want to go ahead and be really helpful im looking to open cmd and do "color 4" Simple 99681
  7. Affinity Command in CMD

    in Windows 10 Performance & Maintenance
    Affinity Command in CMD: In past Windows OS's , I was always able to change the CPU affinity with a simple line in a .bat file. Code: start /affinity # program.exe[/quote] # depends on which CPUs you want to run the program with. Now, in Windows 10, this command does not work. I've tried with...
  8. Can't run command in PowerShell but OK in Cmd

    in Windows 10 Support
    Can't run command in PowerShell but OK in Cmd: [img] [img] The screen shots show results of running Code: "C:\Program Files\AVAST Software\Avast\ashCmd.exe" /@=Quick[/quote] in both PS and Cmd. The problem is I have made a task in Task Scheduler to run this command daily and, apparently, Task Scheduler insists on...
  9. Cmd sleep command but with timer

    in Windows 10 Support
    Cmd sleep command but with timer: If you could help i found :\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState Sleep but i need -t 180 secs which doesnt work with this and i dont want to use third party programs.. tyvm 97497
  10. CMD command not running need help thank you

    in Windows 10 Support
    CMD command not running need help thank you: I did every thing to run there commands and specialy the first one But it wont fun Didi I miss somthing the first command will just not run Help please cd "\user\<yourAccName>\downloads\chml" ( or wherever you saved chml ) chml "c:\users\<yourAccName>\desktop" -i:m...