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 "\\"
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
; 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