Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-01

Re: chdir problem? -- 2nd request

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gabor DEAK JAHN

At 01/16/2001 06:30, you wrote:

Dear Jim,

I use the following function       exec (getenv ('COMSPEC'),concat (' /C ',Command,' "',FileName,'"'));

The one I mentioned uses /K instead of /C, this leaves the second invocation of the command interpreter running (/C exits immediately, so it changes the directory than reverts it back to the previous one immediately as the interpreter exits). This works on NT but I don't know whether the command interpreter in 9x's supports this switch or not.

Regards,

   Gabor DEAK JAHN

------------------------------------------------------------------- Gabor DEAK JAHN -- Budapest, Hungary.
WWW: <http://www.tramontana.co.hu/>www.tramontana.co.hu E-mail: