how get filename from line number.

Discuss and share scripts and script files...
Post Reply
drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

how get filename from line number.

Post by drjs5x »

hi dears
how get filename from line number. example line 157 file= test.avi
get(filename(#157)) ; how can get filename from line number??
or full path ... c:\test55444\test.avi
...
thanks
newbie or not...........

highend
Posts: 13308
Joined: 06 Feb 2011 00:33

Re: how get filename from line number.

Post by highend »

E.g.

Code: Select all

    $line = 157;

    $path = gettoken(listpane(), $line, "|");
    $base = gpc($path, "file");
One of my scripts helped you out? Please donate via Paypal

drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

Re: how get filename from line number.

Post by drjs5x »

:appl: very good fine working.
newbie or not...........

Post Reply