| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | change directory |
On Jun 15 12:07 95, Miha Valencic of 2:380/106.10 wrote:
MV> _chdir and DosSetCurrentDir changes current directory for current process,
MV> so when the process ends, the change directory has no effect.
MV> Is there a [C] function, which enabels me to change a directory
MV> permanently?
I don't think so. The only way is to load the program via a .cmd file, then
change the directory with the .cmd file after it exits. This is how JCD
does it.
Here's my .cmd file, I modified the one that came with JCD (a Norton like
NCD, but better!) but this is basically it.
{at}echo off
if "%1" == "" goto jcd1
cd %1 1>NUL 2>NUL
if NOT errorlevel 1 goto TheEnd
:jcd1
jcd1 %1
if errorlevel 1 goto TheEnd
:: q e:\jcd-file.cmd
call e:\jcd-file.cmd
del e:\jcd-file.cmd /n/f
:TheEnd
cls
dir
Phil
@EOT:
--- Msgedsq/2 3.05
* Origin: Crown Point (1:124/6108.2)SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 124/6108 1014 1 396/1 270/101 105/103 42 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.