log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISC OS London Show Report 2024 (News:1)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
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
PhlamethrowerHot 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
PhlamethrowerHot 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
VincceH
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
PhlamethrowerHot 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
Rich
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 :P)
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.
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: Command line thingy of the day