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: Code for separating library by file location? (Read 1025 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Code for separating library by file location?

I have been using this line of code to separate my library by hard drive:

Code: [Select]
$if($stricmp($left(%path%,1),C),Laptop Music,External Music)| ... 

So far I had two drives, so my library looks like this:


Now I got a second external drive, so I want to change the code to add a third section to the list.
Please help me figure out the correct syntax.
last.fm/user/ihatepretending

 

Re: Code for separating library by file location?

Reply #1
Please help me figure out the correct syntax.

Write another if statement in place of the else statement:

Code: [Select]
$if($stricmp($left(%path%,1),C),Laptop Music,$if($stricmp($left(%path%,1),D),External Music,Whatever))
I'm late

Re: Code for separating library by file location?

Reply #2
Write another if statement in place of the else statement:

Code: [Select]
$if($stricmp($left(%path%,1),C),Laptop Music,$if($stricmp($left(%path%,1),D),External Music,Whatever))

Thank you so much!
last.fm/user/ihatepretending