Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: %path% w/out the filename? (Read 2084 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

%path% w/out the filename?

hi, i cant find how to get the directory structure without the filename.  i have a file with path:
C:\music\new\songone.mp3
i need
C:\music\new
in my copy command.

btw, i've seen there is some new tagz (like $tracknumber()) is there a new help file?

thanks for your time,

%path% w/out the filename?

Reply #1
Code: [Select]
$replace(%_path_raw%,%_filename_ext%,)


Should do the tick for what you want to achieve.

%path% w/out the filename?

Reply #2
ahhh  just about, actually i just need_path
Code: [Select]
$replace(%_path%,%_filename_ext%,)

the path_raw gives me file://C:\_music\new\

but, yeah, thanks, that did the
Quote
tick

<G>

%path% w/out the filename?

Reply #3
If you want it without the file:// (or http://, or whatever) use %_path% instead.

%path% w/out the filename?

Reply #4
juglesh, a while ago I made some copy command script and posted it here. Maybe try a forum search for "copy command AND rar" if possible (maybe "rar" is too short). It was a script to copy and extract files from archives.

That script handled the directories I think, give it a try.

Have fun with it if you find it
Life is Real...
(But not in audio :) )