| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Use of `system` function |
On in a message to Don Hawkinson, Michael Douglass wrote: BH> My question is: Can I change the directory from within a BH> program and have it stay in effect after program termination BH> ???? DH> No but you can cheat. If you wrap the program in a REXX script DH> you can pass the new directory to the REXX program and change DH> directory with REXX. I tried the same thing when I got an OS/2 DH> C compiler. MD> Uh, if you use Borland, try _chdrive() and then chdir() That'll only change the drive and directory _within the program_. IOW, when the program ends you'll be in the same directory you started in. Ed Blackman ... Support bad cops... beat yourself up! --- Blue Wave/Max v2.12 [NR]* Origin: The Federal Post -{*}- Spring-Lake, NC (1:3634/2) SEEN-BY: 54/54 620/243 632/348 640/820 690/660 711/409 413 430 807 808 809 SEEN-BY: 711/934 712/353 623 713/888 800/1 2442/0 @PATH: 3634/2 1 3615/50 229/2 2442/0 711/409 54/54 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™.