| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: REXX stuff... |
Some senseless babbling from Peter Hansen to Mike Ruskai on 07-22-94 18:32...
PH> Forgive me for not taking the time to answer your questions fully,
PH> but something just popped out at me as I zipped past and I'll throw it
PH> back at you, in case it will help...
PH> In a message on 07-20-94, Mike Ruskai said to All:
MR>'cvtico' current_icon 'temp.ico'
MR>'del' current_icon
MR>'ren temp.ico' current_icon '>>' logfile
MR>Later, I replaced the DEL with SysFileDelete to clean up a bit, but the
MR> problem I ran into was that CMD.EXE puked. Apparently it does not
MR>accept a full pathname as the second argument.
PH> :
PH> 'DEL' and SysFileDelete() should both have no problem with a full
PH> pathname, but 'RENAME' requires a simple filename as the second
PH> argument, not a full pathname. Maybe you were mixing up the error
PH> messages from the 'ren temp...' line with the previous line that tries
PH> to delete things.
No, the error was from renaming. When using SysFileTree to extract certain
files from a directory, the values parsed from the data queue are full path
names, such as C:\ICONS\EXAMPLE.ICO. When trying to rename the temp.ico to
this file name, CMD.EXE's REN command pukes. What I need to know is if
there is a way I can strip the path from the filenames parsed from the data
queue of SysFileTree.
MR>Obviously, copying and deleting is considerably slower than renaming
MR>with high volumes.
PH> :
PH> Ahh, seems to me you really want to use the 'MOVE' command instead of
PH> 'RENAME'. If you need to move between drives you have to copy/delete.
No again. I do not need to move the files. I need to rename the file, but
the variable used as the second argument for the REN command contains a
pathname, not just a a file name.
Thanks anyway.
´Mike Ruskai ³ FidoNet(1:107/634) ³ RGSNet(50:130/12) ³ OS/2Net(81:135/30)Ã
´{Team OS/2} ³ ITCnet(85:862/207) ³ TerraNet(87:908/100) Ã
... No dream is ever lost if you never cease to try.
___ Blue Wave/QWK v2.12 OS/2
--- RG 5-31 Exp/GE 1.02+
* Origin: The Licking Factory, OS/2 in NJ! (908)636-7245 (1:107/634)SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430 SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1 @PATH: 107/634 677 33 3615/50 229/2 12/2442 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™.