!Path2Label Thread last updated on 2003-04-05 06:36:57

Posted by member 7223 on 2003-04-04 05:55:26

Humm, have you already print filename with labels ?
Then you should know that "\" in the path will mess the output
Then, a little script to change "\" to "\\"

; !Path2Label
; IN:
; - %{args} = Path\Filename.ext
; OUT:
; - %{Path} = Path\\Filename.ext
; - tmp modified



*Script Bang !Path2Label
*Script Exec !SetListSep \
*Script Exec !VarSet tmp %{args}
*Script Exec !VarSet Path "%{tmp:}"
*Script Label Path2Label
*Script Exec !VarSet X "%{tmp:_}"
*Script Exec !VarSet Path "%{Path}\\%{tmp:}"
*Script GotoIf ("%{tmp}" "%{tmp:_}") Path2Label
*Script ~Bang

Posted by member 7223 on 2003-04-04 05:57:26 link

Hey DeViLbOi, I can't edit my thread.
I guess there's some good reason to this...
So, I should write a script that change "\" to "\\" next time I post something here...

Posted by member 1 on 2003-04-04 10:29:13 link

why can't you edit your thread?

Posted by member 7223 on 2003-04-04 11:19:22 link

There's no option to edit the thread after submiting it.

Posted by member 1 on 2003-04-04 11:31:19 link

site dev dispatched

Posted by member 7223 on 2003-04-05 00:44:05 link

Humm, just a fix:

the line
*Script Exec !VarSet x "%{tmp:_}"

SHOULD BE REPLACE with this one
*Script Exec !VarSet tmp "%{tmp:_}"


Sorry...

Posted by member 1783 on 2003-04-05 06:36:57 link

this forum should be renamed to "Smurth's corner" or sth like that :D

anyway, wow :) keep up the good work ;)