Jump to content

newb question regarding file path variables


Recommended Posts

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"

Link to comment
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")

Edited by BPBNA
Link to comment
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:
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...