
(newbie) Starting a program from a VB.net program
We have an application on a server that must be executed from a mapped
drive.
We don't want the drive mapped permanently.
We are currently using the following batch file.
This file checks if the program is exists, IE is the server up.
Map the share as drive T:
Start the program and wait until it finishes.
Delete the mapping for drive T:
--Start of batch file
echo off
if exist "\\servername\sharename\directory\program.exe" goto foundshare
echo "Could not connect to program"
echo "Contact program Support at"
echo "nnnn then xnnnn"
pause
goto noshare
:foundshare
echo "Do not close or exit this window!"
echo "This program started Program"
echo "When you quit program this program will end."
if exist t: net use t: /delete
net use t: \\servername\sharename
start/w t:\directory\program.exe
net use t: /delete
:noshare
echo on
exit
--End of Batch file
I would like to perform these tasks in a vb program.
I don't want to execute the batch file from a vb process, I want to perform
each of these task within a vb form.
Thanks in Advance.
Jim Walker