Link to home
Start Free TrialLog in
Avatar of deanholdcroft
deanholdcroft

asked on

win32: Curious about the A: drive

Whenever I do
  system(some_cmd);
or
  `some_cmd`;
where some_cmd is a dos cmd located remotely on a network; my computer always accesses the a: drive.

This seriously slows down the perl scripts I am trying to run.

I suspect it is something to do with my Windoze platform - I'm running Win98.
I've tried different ports of perl, and checked my system paths for inclusion of a:\.

I've also noticed this behaviour on other windoze machines, so it's not just my computer.

The only way I've managed to get round the a:\ drive access is to get perl to dynamically generate a local batch file (which invokes the some_cmd) and then use system() to run the batch file - still very slow, though.

Any ideas of how to stop my computers curiosity for the contents of my a: drive?
Avatar of olthoff
olthoff

I find that all of the windows platforms will scan the a:\ drive when explorer or a dos window was closed while A:\ was the last selected drive.  You may want to try a chdir in the script.  IE:

....
chdir($ENV{TEMP});
shell;

It is something you may wish to try.
ASKER CERTIFIED SOLUTION
Avatar of jhurst
jhurst

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial