Re: Process.Start - Network location
- From: "Tony K" <myfirstname@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 25 Mar 2008 08:49:41 -0600
"Mike McGuire" <mkmcgui5@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:e6RyYWgjIHA.6092@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I am trying to launch a vb script from the network using Process.Start.
(VB .NET 2005)
Here's the line I'm using:
Process.Start("Wscript.exe",VBSFile,User,Pword,Domain)
"Wscript.exe" - Is the command
VBSFile - Is the Argument
User - Is the UserName
Pword - is the password
Domain - is the domain
The VBSFile resides on a server and the properties of the variable look
like \\server\share\folder1\folder2\script.vbs.
This line works perfectly when I launch notepad.exe:
Process.Start("Notepad.exe",User,Pword,Domain)
So I know that the varibles for the user, password, and domain are all
correct.
Is there a way to launch something on a server share by using
Process.Start (or something similar)?
Is Wscript.exe part of the path set in Environment Variables? I know
notepad.exe can be launched from the run command by just typing notepad.
.
- References:
- Process.Start - Network location
- From: Mike McGuire
- Process.Start - Network location
- Prev by Date: Re: Calendars
- Next by Date: Re: Accessing public property on multiple instances of open forms
- Previous by thread: Process.Start - Network location
- Next by thread: Re: Process.Start - Network location
- Index(es):
Relevant Pages
|