Jump to content

Recommended Posts

Posted

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?

Posted

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

\

Posted

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

Posted

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

Posted

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

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
  • Recently Browsing   0 members

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