Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing a VB Script

Status
Not open for further replies.

gadget3302

Programmer
Apr 24, 2003
79
US
My qestion is simple. I have a VBS to map a network drive. I want to press a button in my vb program and have the vbs execute. I tried using Shell "map.vbs" with no success. Any help would be greatly appreciated.
 
You can try using the 'System.Diagnostic.Process.Start', it has a lot more functionality than the shell.
 
I do not thinks that code is availabe for VB 6.0 is it? Maybe I am not using it correctly.
 
If you are using VB 6, you should probrably try posting on the VB 5 & 6 board. Thanks.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top