• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

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
0
chad
Asked:
chad
  • 2
1 Solution
 
amyhxuCommented:
Anything useful for you in this link?
http://www.vb-helper.com/howto_shellexecute.html
0
 
chadAuthor Commented:
I'll try it... it may take a couple days to test it completely
thanks
0
 
chadAuthor Commented:
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
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now