"attrib -s -h *.* /s /d" access denied errors

0

My problem is that my usb flash drive doesn't show the contents and I searched it on Google I find the solution for this error. But When I type the command from cmd as administrator it gives me access denied all contents of system32 files. (My OS is win8-pro-64bit)

  • I tried changing the ownership of system32 and all its contents as user/myusername
  • I tried changing the ownership as everyone.

All of two doesn't solve the annoying errors. Also

  • I tried to open it on ubuntu os it shows all of the contents. And there is no errors.
  • I tried to write new mbr via using testdisk to solve problem but still I have same issue.

makgun

Posted 2015-07-02T21:31:06.387

Reputation: 305

are you sure you're in the right directory? – Zalmy – 2015-07-02T21:35:50.380

No I am at win/system32 and when I typed cd e: it doesn't navigate to e – makgun – 2015-07-02T21:38:06.220

You have to change the directory to the flash drive.

just type "e:" without cd – Zalmy – 2015-07-02T21:39:03.127

When I type cd e: it shows me E:\ but console start with c:> – makgun – 2015-07-02T21:40:35.307

type in the command line "echo %cd%". What are you getting? – Zalmy – 2015-07-02T21:42:15.833

It shows only c: – makgun – 2015-07-02T21:43:23.110

1how about try "attrib -s -h E:\. /s /d" – Zalmy – 2015-07-02T21:45:09.530

1Use the following cd /d e: (/d means change the current DRIVE in addition to changing folder.) – DavidPostill – 2015-07-02T21:45:20.370

@DavidPostill thaks for your help – makgun – 2015-07-02T21:47:41.020

1Well did it work? – DavidPostill – 2015-07-02T21:48:14.410

@David your last answer also works to navigate to e – makgun – 2015-07-02T21:48:36.767

Answers

3

Use attrib -s -h E:\*.* /s /d .

Zalmy

Posted 2015-07-02T21:31:06.387

Reputation: 821