Acorn Arcade forums: Programming: Command line thingy of the day
|
Command line thingy of the day |
|
Phlamethrower (18:41 10/9/2006) Phlamethrower (18:45 10/9/2006) VincceH (22:07 10/9/2006) Phlamethrower (22:24 10/9/2006) rich (08:24 11/9/2006)
|
|
Jeffrey Lee |
Message #80034, posted by Phlamethrower at 18:41, 10/9/2006 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
|
setmacro alias$SetCSDToVar set %0 <FileSwitch$CurrentFilingSystem>:|<FileSwitch$<FileSwitch$CurrentFilingSystem>$CSD>
I've been wondering how to do this for 2.75 years :(
Bonus points if you can find a way of doing it as a system variable! (Without writing a Code variable :P) |
|
[ Log in to reply ] |
|
Jeffrey Lee |
Message #80035, posted by Phlamethrower at 18:45, 10/9/2006, in reply to message #80034 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
|
Hmm, just realised I still want it as a system variable.
*starts rewriting the file he just deleted* |
|
[ Log in to reply ] |
|
VinceH |
Message #80038, posted by VincceH at 22:07, 10/9/2006, in reply to message #80035 |
Lowering the tone since the dawn of time
Posts: 1600
|
The real command line thingy of the day should be:
*Make Coffee |
|
[ Log in to reply ] |
|
Jeffrey Lee |
Message #80040, posted by Phlamethrower at 22:24, 10/9/2006, in reply to message #80038 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
|
Well until then, have some BASIC code for a system variable containing the CSD. |
|
[ Log in to reply ] |
|
Richard Goodwin |
Message #80053, posted by rich at 08:24, 11/9/2006, in reply to message #80034 |
Dictator for life
Posts: 6828
|
setmacro alias$SetCSDToVar set %0 <FileSwitch$CurrentFilingSystem><FileSwitch$<FileSwitch$CurrentFilingSystem>$CSD>
I've been wondering how to do this for 2.75 years
Bonus points if you can find a way of doing it as a system variable! (Without writing a Code variable ) I had this kind of thing set as pwd($dir or whatever) on my home machine (although for some reason, it would only work as two lines).
Not entirely sure why I did that instead of writing a small BASIC prog that would respond to the command "pwd" instead, but it was probably more for the challenge.
[time passes...]
Oh yes, now I remember, I needed it as a variable so that I could put it in my CLI prompt, so it was a bit UNIX-like. I also had the current date/time underneath so it wasn't entirely UNIX-y though. ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: Command line thingy of the day |