Three has asked for the wisdom of the Perl Monks concerning the following question:
I am writing a program on a win32 system to navigate a Byzantine subdirectory structure.
I am including features so you can search by text or regular expressions. Then it would either jump to the directory if it’s your only match or give you a list to select from.
I have everything working except I can’t change the directory on exit of the program.
Here is what I have tried
chdir("c:\\"); #Doesn't Work system("cd c:\\"); #Doesn't Work system("start cmd -k c:\\"); #Works but opens a new command com up. Un +wanted!
I have read that perl restores the path it was executed from on exit.
Is there any way to force it to not restore or restore the path I want??
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Controlling the directory location on exit.
by John M. Dlugosz (Monsignor) on Nov 12, 2002 at 20:02 UTC | |
|
Re: Controlling the directory location on exit.
by the pusher robot (Monk) on Nov 12, 2002 at 19:23 UTC | |
|
(z) Re: Controlling the directory location on exit.
by zigdon (Deacon) on Nov 12, 2002 at 19:21 UTC |