0

Possible Duplicate:
ShellExecute equivalent in .NET
Execute CMD command from code

Say for example i want to unhide all files and folders in a drive for this in command prompt we use this command attrib -s -h -r -a /s /d i:*.* How to make this execute in a C# program.

Community
  • 1
  • 1

1 Answers1

1

You could of course do it programmatically, but the quick and dirty solution is

Process.Start("attrib", "-s -h -r -a /s /d i:*.*");
Jon
  • 428,835
  • 81
  • 738
  • 806