ragemxf Posted November 23, 2005 Posted November 23, 2005 filewriteline("c:\adx\adx.ini","@username") when I use this script, the last line in file reads UserDir=W:\adx\users\@username I want to get this to paste the logged on users name in this txt file... How can I do it?
Buffo Posted November 23, 2005 Posted November 23, 2005 Leave out the quotation marks: filewriteline("c:\adx\adx.ini",@username) Regards, Buffo
ragemxf Posted November 23, 2005 Author Posted November 23, 2005 what if I need a trailing backslash?
ragemxf Posted November 23, 2005 Author Posted November 23, 2005 this is what happens when I ues this script... filewriteline("c:\adx\adx.ini",@username) filewriteline("c:\adx\adx.ini","\") UserDir=W:\adx\users\paa7010 \
ragemxf Posted November 23, 2005 Author Posted November 23, 2005 i could probably do this using fileopen and then filewrite.... but I am unsure of what the Filehandle is? it is line 50 that I am trying to edit
ReFran Posted November 23, 2005 Posted November 23, 2005 this is what happens when I ues this script...filewriteline("c:\adx\adx.ini",@username)filewriteline("c:\adx\adx.ini","\")UserDir=W:\adx\users\paa7010\If you write 2 lines you get 2 lines.Use:filewriteline("c:\adx\adx.ini",@username&"\")HTH, Reinhard
bboysza Posted November 23, 2005 Posted November 23, 2005 If you write 2 lines you get 2 lines. Use: filewriteline("c:\adx\adx.ini",@username&"\") HTH, Reinhard I noticed you're editing an ini file. Are there section names in the ini? If so... IniWrite('c:\adx\adx.ini', "SectionName", "UserDir", @Username & '\') Ben
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