Run CMD commands on different drives

  1. Posts : 59
    win 10 x64

    Run CMD commands on different drives

    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, please?
      My ComputerSystem Spec

  2. Posts : 805

    Type E:
    Then your current folder will be E:\
    Then run the attrib command.
      My ComputerSystem Spec

  3. Posts : 59
    win 10 x64
    Thread Starter

    I have done this. It says E is not accessible. It's a memory stick.
      My ComputerSystem Spec

  4. lx07's Avatar
    Posts : 5,435

    You are trying to remove some USB malware right?

    Try it this way - from administrator command prompt. attrib -h -r -s /s /d e:\*.*
      My ComputerSystem Spec

  5. Try3's Avatar
    Posts : 2,458
    Windows 10 Home x64 and Pro x86

    If E is not accessible then that is the problem you need to investigate rather than tinkering with the attibutes of some files you cannot see anyway.

      My ComputerSystem Spec

  6. Posts : 59
    win 10 x64
    Thread Starter

    Yes. And is your command different from the one I wrote?
    Thanks as well.
    @Try3: It's accessible. And we can see it but there's malware there and needs to be removed.
      My ComputerSystem Spec

  7. Try3's Avatar
    Posts : 2,458
    Windows 10 Home x64 and Pro x86

    tomyfr said: View Post
    I have done this. It says E is not accessible. It's a memory stick.
    It's accessible. And we can see it
    I have not seen a drive that is inaccessible to a Command prompt window but is accessible by File explorer [which is what I suppose you mean by "we can see it"].

    I suggest that you right click on it in File explorer and select Scan with Windows defender.

      My ComputerSystem Spec

  8. spunk's Avatar
    Posts : 2,004
    Windows 10 Pro

    The drive may have a physical switch that makes it Read Only. Or the may be damage and need to be replaced. Can you go into Disk Management and if you can see the drive try Formatting it.
      My ComputerSystem Spec


Related Threads
I would like to learn the most useful CMD/Powershell commands to help me diagnose problems, can anyone recommend me any books or links to pdf that I could print and use Thanks
Apps & Features App Commands List for Windows 10 in Tutorials
List of Commands to Open Microsoft Store Apps in Windows 10 This tutorial will provide you with a list of Uniform Resource Identifier (URI) commands to open specific Windows 10 Store apps via the command prompt, Run (Win+R) dialog, and scripts....
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
Is there a list of other system commands available similar to the one below ? To find Win 10 activation information: Use the following in Command Prompt (Admin) slmgr /dlv Thanks for showing me any more... Cliff M. acmanten
Need diskpart commands in Performance & Maintenance
I am going to reinstall but i forgot the typical diskpart commands that i want to do before hand on my SSD , i know clean is one of them but i forgot the others . I just have one SSD for boot and usage . Thank you
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 01:47.
Find Us