Jump to content
Sign in to follow this  
sonicxtacy02

newb question regarding file path variables

Recommended Posts

sonicxtacy02

i'm writing a script to automate saving a playlist(.m3u). Its currently working with a constant file path but i want to make the file path a variable so that an external .ini file can determine what folder the playlist will be saved in. i know..

iniread("C:\program files\road runner\rr.ini","","musicpath", "default") will give me the correct folder but how do i add the correct file name from there? Maybe this will better explain what i mean

$filepath = iniread("C:\program files\road runner\rr.ini","","musicpath", "default")

if $var= "5" Then

IniWrite("C:\Program Files\Road Runner\Ratings\ratingsconfig.ini","ratings", "playlistpath", "$filepath PLUS 5 stars.m3u")

i need to combine the $filepath with the name of the file "5 stars.m3u"

Share this post


Link to post
Share on other sites
BPBNA

$filepath = iniread("C:\program files\road runner\rr.ini","","musicpath", "default") 
if $var= "5" Then
IniWrite("C:\Program Files\Road Runner\Ratings\ratingsconfig.ini","ratings", "playlistpath", "$filepath" & "5 stars.m3u")

Edited by BPBNA

Share this post


Link to post
Share on other sites
sonicxtacy02

$filepath = iniread("C:\program files\road runner\rr.ini","","musicpath", "default") 
if $var= "5" Then
IniWrite("C:\Program Files\Road Runner\Ratings\ratingsconfig.ini","ratings", "playlistpath", "$filepath" & "5 stars.m3u")
i know it would be something stupid. hadda remove the quotes around the variable though. Thanks :whistle:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.