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

Current working directory in Explorer

Status
Not open for further replies.

rossduncan

Programmer
Apr 29, 1999
2
US
I am trying to execute a batch file from Explorer. I managed to get this to work but when the batch file<br>
executes the current dir is somewhere inside an NT sub-dir rather than the one where the html file is located.<br>
<br>
Works OK in Netscape so I guess I want to know how to set the current dir in explorer.<br>
<br>
Ross
 
If you could supply an example of your code, it would be easier to see exactly what you are talking about :)<br>
<br>
<br>

 
To rivkah - thanks will try that forum<br>
<br>
To jvogel<br>
<br>
I am including a tag &lt;A HREF="install.bat"&gt; in my html page which runs my batch file install.bat.<br>
<br>
This batch file does stuff like:<br>
<br>
cd part1<br>
install.exe<br>
<br>
or<br>
<br>
part2\install <br>
<br>
which assumes a working dir of the same as the html page.<br>
<br>
This is because I don't know where the cd rom drive is so I can't put d:\part1\install for example.<br>
<br>
Since I posted I found that Netscape works ok if I use explorer and click on my html page and let explorer auto load netscape, it correctly sets the CWD. If however I start netscape then load the page the CWD is the CWD of netscape.exe.<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top