| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Variable ? |
-=> Quoting Ted Menks to Tony Pater <=- TM> Hi Tony, TM> (Thursday August 27 1998 10:55) Tony Pater to All about: Variable ? TP> I haven't left you..... just been busy. TM> So was I. That's why this reply comes in a bit late. Sorry for that! Nice to see you back Ted .... I'm trying to bone up on Rexx for this sorta stuff..... but 4dos seems so much easier/intuative. TP> F: TP> pushd F:\Internet\ice\mail\ TP> if exist j:\xyz\messages\%Gyear\%Gmonth\ TM> I'm failing to see one thing on the above line... checking for an TM> existing directory should be done by checking if the "nul" file exists TM> for that dir. Secondly, it would be wise to also END the variables with TM> an %, when you use them as part of a path. TM> So, it should read: TM> if exist l:\xyz\messages\%Gyear%\%Gmonth%\nul Hhhhhm Ok ..... the '%' on the end didn't appear necessary, but it's an easy matter to insert it. As to the 'nul', I'm not clear why it would be necessary... as the 'if exist' does the check ... Can you explain the virtues of using 'nul' ??? TM> Mind you: you never need to actually put a file called "nul" in a dir, TM> since "nul" is actually a non-existent device, whose name is TM> "mis-used" so to speak. I'm sure there are some cracks around, who may TM> explain this in better detail. TM> Again, add the finishing % to the variables, and now also remove the TM> last \ from the line. I used the last '\' to ensure that it was a directory ..... but you're right... in this instance it isn't necessary. TM> With this little addition, it should be rocking the dead from their TM> graves! :-) I've got it working Ok fine, but I'll add your tips..... Ta Mutchly. Tony Sydney, Oz Mon 21/09/1998 20:49:02 ... 4dos/4os2.. under Warp 4 --- FMail/2 1.22+* Origin: Cyberia: You know you want it. [02-9534-1702] (3:712/848) SEEN-BY: 396/1 632/0 371 633/260 267 270 371 635/506 728 639/252 @PATH: 712/848 888 311 640/201 270/101 396/1 633/260 635/506 728 633/267 |
|
| 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™.