Sign in to follow this  
Followers 0
dcjohnston

use a variable in the iniwrite path

3 posts in this topic

Here I take the users ID

$user1 = InputBox("User ID", "Enter Your User ID, ( UFCF32 )", "")

MsgBox(0, "UserID:", $user1)

The problem is in the path info in this line:

IniWrite("C:\Documents and Settings\ "& $user1 &" \Windows\platform.ini", "PLATFORM", "ServerINIFile", "e:\program files\platform\pltrsm\PLATxxxx.INI")

I am using a variable wrong somehow I am sure. Either way the file does not get edited.

Thanks

Dave

Share this post


Link to post
Share on other sites



I don't know what you trying to do but step of asking for User ID I will used @UserProfileDir

IniWrite(@UserProfileDir &" \Windows\platform.ini", "PLATFORM", "ServerINIFile", "e:\program files\platform\pltrsm\PLATxxxx.INI")


AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites

Yeman, worked like a champ. Learning all the time.

Dave

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