Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 23rd, 2006, 10:48 PM   #1
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 3 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
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.
PhilBon is offline   Reply With Quote
Old Sep 24th, 2006, 8:59 AM   #2
john Wesley
Hobbyist Programmer
 
john Wesley's Avatar
 
Join Date: May 2006
Location: United Kingdom
Posts: 119
Rep Power: 3 john Wesley is on a distinguished road
Send a message via MSN to john Wesley Send a message via Yahoo to john Wesley
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.
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles..
john Wesley is offline   Reply With Quote
Old Sep 24th, 2006, 10:00 AM   #3
john Wesley
Hobbyist Programmer
 
john Wesley's Avatar
 
Join Date: May 2006
Location: United Kingdom
Posts: 119
Rep Power: 3 john Wesley is on a distinguished road
Send a message via MSN to john Wesley Send a message via Yahoo to john Wesley
After re-reading your post, I must apologise. Your syntax seems to be correct.
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles..
john Wesley is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C# corruption!!! Kilo C++ 32 May 21st, 2006 8:44 PM
Masm rsnd Assembly 4 May 20th, 2006 9:05 PM
From C syntax to C++ syntax Navid C++ 13 Jan 15th, 2006 7:42 AM
Cobra Sane Python 18 Aug 22nd, 2005 5:19 PM
syntax problems. troubleshooter Bash / Shell Scripting 2 Apr 5th, 2005 9:34 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:56 PM.

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