alienkillaz 0 Posted February 1, 2005 Share Posted February 1, 2005 if someplace in a scrpit calls for an iniread or iniwrite whats is the way to tell the script that the ini is located in the same dir as the script? Link to post Share on other sites
closeupman 0 Posted February 1, 2005 Share Posted February 1, 2005 if someplace in a scrpit calls for an iniread or iniwrite whats is the way to tell the script that the ini is located in the same dir as the script?<{POST_SNAPBACK}>Check the help file, there's an easy way to find the script dir (hint: @) Link to post Share on other sites
IanR 0 Posted February 1, 2005 Share Posted February 1, 2005 ; Look for an .ini file as scriptexename.ini: $iniFileName=stringleft(@ScriptFullPath,stringinstr(@ScriptFullPath,".",0,-1)) & "ini" ; Alternatively, look for an .ini file in the same folder as the executable, but with a different name: $iniFileName=pathonly(@ScriptFullPath) & "yourinifile.ini" func pathonly ($pathtostrip) If stringinstr($pathtostrip,"\") =0 then $pathtostrip = $pathtostrip & "\" endif return stringleft($pathtostrip,stringinstr($pathtostrip,"\",0,-1)) If it says "Made in China" then it just might be made by slave labour... Link to post Share on other sites
MHz 82 Posted February 1, 2005 Share Posted February 1, 2005 closeupman gave a great hint. @ScriptDir & "\INIname.ini" Link to post Share on other sites
alienkillaz 0 Posted February 1, 2005 Author Share Posted February 1, 2005 closeupman gave a great hint.@ScriptDir & "\INIname.ini"<{POST_SNAPBACK}>thank you Link to post Share on other sites
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now