Current Drive Variable? Thread last updated on 2006-09-30 11:03:29

Posted by member 345781 on 2006-09-30 09:22:28

Is there a variable for the current drive letter that litestep is running on?

I know of $LiteStepDir$ = "C:\Litestep\" or similar, but is there a variable that would only show the "C:\" or "D:\" or whatever drive it is running on?

Thanks

Posted by member 212670 on 2006-09-30 10:26:15 link

Of course you have xlabel loaded?

For use on a line of text:
SomeLabelText "[between('$LitestepDir$', '1', '2', 'index')]"

If you're wanting to use it in !bangs, ex:
!ParseEvars !alert "%[between('$LitestepDir$', '1', '2', 'index')]%"

Or, you could also use:
"[before('$LitestepDir$', ':')]:"

Posted by member 345781 on 2006-09-30 11:03:29 link

Great, thanks for the help!