Aura
-
Total Posts
:
2
- Scores: 0
-
Reward points
:
0
- Joined: 8/28/2009
-
Status: offline
|
Embed Command Prompt Apps (PSEXEC) into VB apps
Friday, August 28, 2009 2:40 AM
( permalink)
Hey Everyone, Obviously, I am new to the forums. I have a friend that works with me, he recommended this site. I recently downloaded Sysinternals application package Psexec, a command prompt application that allows you to do various network tasks through a remote command prompt that does not interfere with the logged in users experience. It is very handy for me. What I am wanting to do is put it into a simple GUI using Visual Basic Professional. I just started getting into it. I have downloaded everything I would think I need, I just need a push in the right direction. So, my question is this: How would I use VB go turn this command application into a GUI? Not looking for fancy looks, just simplicity. Thanks, Aura
|
|
|
|
ginolard
-
Total Posts
:
1347
- Scores: 23
-
Reward points
:
0
- Joined: 8/11/2005
-
Status: offline
|
Re:Embed Command Prompt Apps (PSEXEC) into VB apps
Wednesday, October 14, 2009 11:48 PM
( permalink)
Ok, there are really two issues here. Firstly, using PsExec from a VB app. Secondly, what do you really want to DO with PsExec?? Let's deal with the first one first (sic). Running any external tool from VB (I'm assuming VB.NET here) is easy. You simply use the Process class and define input parameters (i.e. the switches that you wish to pass to the external program) and then execute the process. In VBScript terms, the Process class is akin to Wshell.Run. Now, perhaps you should ask yourself what you really want to do with PsExec. If you simply want to perform tasks on a remote machine then you can use WMI to create a remote process via the Win32_Process namespace. The (big) limitation of this is that it will not allow you to run a process that displays any sort of GUI to the remote user (whereas using PsExec will allow that). Hope this helps a bit.
|
|
|
|
lily28
-
Total Posts
:
2
- Scores: 0
-
Reward points
:
0
- Joined: 2/26/2011
-
Status: offline
|
Re:Embed Command Prompt Apps (PSEXEC) into VB apps
Saturday, February 26, 2011 7:56 PM
( permalink)
i had some trouble to use this psexec in cmd..when i enter psexec command in cmd, error message will be displayed. the error message it “psexec is not recognized as an internal or external command, operable program or batch file”. what does that mean? i can’t understand..please help me solve this..
|
|
|
|
jackyleung24
-
Total Posts
:
1
- Scores: 0
-
Reward points
:
0
- Joined: 1/9/2012
-
Status: offline
|
Re:Embed Command Prompt Apps (PSEXEC) into VB apps
Monday, January 09, 2012 11:35 AM
( permalink)
It means that your system doesn't know what "psexec" means. Verify that you have the "psexec.exe" file within the directory of "C:\Windows\System32\".
|
|
|
|