View Poll Results: Is this thread helpful?

Voters
1. You may not vote on this poll
  • Yes, it's a good one!

    0 0%
  • Good.

    0 0%
  • It could have been explained better

    0 0%
  • It's terrible!

    1 100.00%
Results 1 to 2 of 2

Thread: Shell or ShellExecute Commands

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Location
    Portland, OR USA
    Posts
    2

    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!

  2. #2
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036
    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
  •  



Click Here to Expand Forum to Full Width