?
Solved

navigating to a windows folder and/or opening another application

Posted on 2005-03-26
3
Medium Priority
?
178 Views
Last Modified: 2010-04-23
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
Comment
Question by:kabaam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
amyhxu earned 750 total points
ID: 13638039
Anything useful for you in this link?
http://www.vb-helper.com/howto_shellexecute.html
0
 
LVL 11

Author Comment

by:kabaam
ID: 13638085
I'll try it... it may take a couple days to test it completely
thanks
0
 
LVL 11

Author Comment

by:kabaam
ID: 13657176
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question