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

Script to open directory in same window

Status
Not open for further replies.

sqgtom

Programmer
Oct 23, 2007
4
GB
Hi there,

Hopefully someone can offer a simple answer to a problem I'm having...

I have successfully added an item to my My Computer listing using the instructions here ([URL unfurl="true"]http://forum.osnn.net/archive/index.php/index.php?t-4177.html[/url])

However, following these instructions... using the command "explorer /e,D:\files\clients\" opens this directory in a new window, rather than the current one.

I have been told elsewhere that I may need a VBScript to do this.

If so, could anyone give me any tips on how to acheive this?

Essentially, i need to feed script/command a directory name, and the current windows explorer window should CD to that directory.
 
VBSCRIPT=forum329

This is VB5/6 forum

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top