MyFlight
Technical User
- Feb 4, 2002
- 193
Help,
I am trying to change the values in one of my directories. I usally change passwords and would like to automatically update procomm. I wrote a script, however it does not seem to work properly (of course or i wouldn't be asking questions here).
The script prompts you for the SiteName Login and Password, then attempts to change the settings in the Test directory.
I removed all of the waitfor and transmit lines to see if it works...and no go.
ANY SUGGESTIONS????
I am trying to change the values in one of my directories. I usally change passwords and would like to automatically update procomm. I wrote a script, however it does not seem to work properly (of course or i wouldn't be asking questions here).
The script prompts you for the SiteName Login and Password, then attempts to change the settings in the Test directory.
I removed all of the waitfor and transmit lines to see if it works...and no go.
Code:
proc main
string szNewPswd
string szSiteName
string szLogin
string szCompany
; Assigns Site Name to the Variable szSiteName
sdlginput "Site Name " "Enter Site Name:" szSiteName
pause 1
; Assigns Company Name to the Variable szCompany
sdlginput "Company Name " "Enter Company Name:" szCompany
pause 1
; Assigns Login Name to the Variable szLogin
sdlginput "Login to be CHANGED" "Enter Login Name:" szLogin
pause 1
; Assigns Password to szNewPswd
sdlginput "New Password" "Enter the New DEFAULT Password:" szNewPswd
pause 1
dialload "test.DIR"
if not nullstr szSiteName ; Make sure entry isn't empty.
if dialfind DATA SzSiteName SzSiteName
usermsg "The entry is called `"%s`"." SzSiteName
set dialentry access DATA szSiteName
szLogin = $MISC
szNewPswd = $PASSWORD
szCompany = $COMPANY
set userid szLogin
set password szNewPswd
set dialentry company szCompany
dialsave
endif
endif
enproc
ANY SUGGESTIONS????