Sign in to follow this  
Followers 0
sonicxtacy02

newb question regarding file path variables

3 posts in this topic

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



#2 ·  Posted (edited)

$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

$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  
Followers 0