pfix v1.2 © Copyright 1997 Jess Sosnoski starblaz@postoffice.ptd.net http://home.ptd.net/~starblaz/ DISCLAIMER: ---------- I am not responsible for ANY damage caused by the use/misuse/modification/ existence of this program. In using this program you take full responsibility. DESCRIPTION: ----------- This is a little program to fix a problem I was having with the file manager Ordering. I wrote this as a quick'n'dirty solution to the following problem: (I encourage anyone out there to write this in assembly so I don't have to call my own 4k executable...it's too damn big for what it does...well...being compiled Pascal explains why...) WHY: --- I have Ordering set up so that when I extract from an archive, that Ordering opens up a directory requester to specify the destination path. Unfortunately, if one were to attempt to extract into a subdirectory, one would fail. Here's how I had my prefs set up for extracting: lha -x %dcf %dr ^ ^ | | | Directory Requester | Double-Clicked File So that when I double-clicked on a file that was an archive it would being up a directory requester. However...if I were to select a path like: Utils:comm/ %dr would be set to: Utils:comm and there would be problems. Here's where this little proggy (okay, it's 4k long..not my fault) comes in... lha -x %dcf `pfix %dr` ^ ^ NOTE: THESE ARE BACKWARDS APOSTROPHE'S! What pfix does is this: takes a command line argument, if it ends with a : or / it is left alone. However, if it does not, it appends a slash. So that Utils:comm --> Utils:comm/ HISTORY: ------- 1.0 First Release Size: 4040 1.1 Recompiled with latest version of PCQ pascal from Aminet. Slight code changes. Size: 3800 1.2 Recompiled with PCQ 2.0 from aminet, assembled with PhxAss 4.32b (24.10.97), linked with PhxLnk 4.31. Size: 3404