Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   MS Dos Syntax (http://www.programmingforums.org/showthread.php?t=11377)

PhilBon Sep 23rd, 2006 11:48 PM

MS Dos Syntax
 
I was wondering if anyone knew the syntax to execute an msdos command inside of a VB.Net program while it's running. For example: Let's say you want to remove all the permissions on a folder you want to have the command "CACLS c:\shares\ /e /r "mydomain\user"" execute, rather than having the computer create a batch file, run that batch file, then delete that batch file. I know there is a way to do that in VB.Net, but I want to use it for other references.

john Wesley Sep 24th, 2006 9:59 AM

http://www.codeguru.com/Csharp/Cshar...icle.php/c8503

What you want to do is covered in this article, it is directed at C#.NET but in essence should be explainational enough to allow you to interperet.

Hope it helps.

john Wesley Sep 24th, 2006 11:00 AM

After re-reading your post, I must apologise. Your syntax seems to be correct.


All times are GMT -5. The time now is 1:11 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC