View Poll Results: Is this thread helpful?
- Voters
- 1. You may not vote on this poll
-
Nov 1st, 2004, 06:19 PM
#1
Thread Starter
New Member
Shell or ShellExecute Commands
Hi, all!
I am new to VB .Net programming so please bare with me.
I am currently writing scripts for my company to automatically rename a PC to a standard name. There are close to two thousand PC's that need to be renamed.
For example, I want to create a GUI based application that will have two text boxes and then a Run button. In textbox 1, I enter in the old PC name "JohnDoe". In the TextBox2, I enter in the new name of the PC "JohnDoe001". When I click the Run button, it will automatically launch the script code to execute the command.
What is the code to use when launching scripts/batch files?
I read somewhere that I would have to use the Shell or ShellExecute command.
Thanks!
-
Nov 2nd, 2004, 05:05 AM
#2
Hi
Instead of Shell use the process class search for the .Start method.
Regards
Jorge
"The dark side clouds everything. Impossible to see the future is."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|