Link to home
Start Free TrialLog in
Avatar of chad
chad

asked on

navigating to a windows folder and/or opening another application

I am working on my first vb.net project and have hit a stopping point.
I want to have a click event open a different application and open a network folder

I have used a vbscript to do this and it seemed to work but the same code doesn't work in vb.net

wshShell = wscript.CreateObject("WScript.Shell")
wshShell.Run("mstsc.exe /v:" + strVariable + " /w:1024 /h:768")

wshShell = Wscript.CreateObject("WScript.Shell")
wshShell.Run("\\Networkdrive\folder")

these worked with a script but not within vb.net application.  Is there a VB.net equavalent?
thanks
K
ASKER CERTIFIED SOLUTION
Avatar of amyhxu
amyhxu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chad
chad

ASKER

I'll try it... it may take a couple days to test it completely
thanks
Avatar of chad

ASKER

the info on that link did not work for me but it did get me into the correct direction.
thanks, I have it working the way I wanted now.

I am going to post the exact lines of code I used later... for future references