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. Cmd font is different from cmd run as administrator vs run without administrator

    in Windows 10 Gaming
    Cmd font is different from cmd run as administrator vs run without administrator: idk why this is but its annoyingwhen you start a cmd as admin you will execute "conhost.exe" / "cmd.exe"when you start a cmd without admin you will execute "windowsTerminal.exe" / "OpenConsole.exe"this leads for some reason to a discrepancy between starting size and font art...
  3. Cmd font is different from cmd run as administrator vs run without administrator

    in Windows 10 Software and Apps
    Cmd font is different from cmd run as administrator vs run without administrator: idk why this is but its annoyingwhen you start a cmd as admin you will execute "conhost.exe" / "cmd.exe"when you start a cmd without admin you will execute "windowsTerminal.exe" / "OpenConsole.exe"this leads for some reason to a discrepancy between starting size and font art...
  4. How to run a CMD command on a sharepoint server

    in Windows 10 Software and Apps
    How to run a CMD command on a sharepoint server: I am trying to run a CMD command on a SharePoint server to get its file structure xcopy but I cannot find any information on how to direct my cmd command at the SharePoint. I have admin access to the SharePoint, but the file server is on Microsoft's server. So how would I run...
  5. How to run a CMD command on a sharepoint server

    in Windows 10 Gaming
    How to run a CMD command on a sharepoint server: I am trying to run a CMD command on a SharePoint server to get its file structure xcopy but I cannot find any information on how to direct my cmd command at the SharePoint. I have admin access to the SharePoint, but the file server is on Microsoft's server. So how would I run...
  6. Can't run almost any commands in cmd/powershell

    in Windows 10 Gaming
    Can't run almost any commands in cmd/powershell: Basically, adb : The term 'adb' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + adb + ~~~ + CategoryInfo :...
  7. Can't run almost any commands in cmd/powershell

    in Windows 10 Software and Apps
    Can't run almost any commands in cmd/powershell: Basically, adb : The term 'adb' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + adb + ~~~ + CategoryInfo :...
  8. Powershell with CMD/c to run external command with Parameters

    in Windows 10 Customization
    Powershell with CMD/c to run external command with Parameters: Greeting, I have an old command line application call Commandline.exe. it run with a parameter to check then show the result. but it need extra "Enter" to confirm like: commandline.exe -s 4567890 So I preparing the an answer file which is on an "Enter" crlf...
  9. 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...
  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...