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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open windows explorer

Status
Not open for further replies.

CMDorsey

Technical User
Oct 26, 2005
4
US
I am a novice when it comes to vbscript...

I have the following vbscript -

Set objShell = CreateObject("Wscript.Shell")
strPath = "F:\atco\LanAir\Work Orders"
strPath = "explorer.exe /e,""F:\atco\LanAir\Work Orders"
objShell.Run strPath

I have a variable my WO#, I need to add to the path the folder that matches the WO# (in MAS 90 the field name is ML_WO).

 
strONum = "223344"
strPath = "explorer.exe /e," & Chr(34) & "F:\atco\LanAir\Work Orders\" & strONum & Chr(34)

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top