MyFlight
Technical User
- Feb 4, 2002
- 193
Help I am trying to write a script for the following.
I have a directory (Telephone Equip.dir) with approximately 40 entries, sub-divided into folders, Phone Systems, Voice Mails, Answering Systems, Other Systems.
I need to access and dial into each system in the Phone Systems sub-folder. After the connection is made I have to change the password for each system with this script. The changes are no problem. However, I need to then write the OLD and NEW information to a file (that contains the following information:
Entry Name
Company Name
OLD Password
New Password
I know how to make the changes, but cannot automate the Dialing or changes. I am using the following to write all of my changes:
String fName = "New Pswd List.txt"
fopen 2 fName CREATE TEXT
if SUCCESS
fwrite 2 EntryName 20
finsblock 2 20
fwrite 2 OldPassword 10
finsblock 2 10
fputs 2 NewPassword
cTechTwoCount ++
transmit NewPassword
PAUSE 1
transmit "^M"
else
fwrite 2 sTok1 6
finsblock 2 20
fwrite 2 OldPassword 10
finsblock 2 10
fputs 2 sPswdProblem
iTechTwoCount ++
endif
Any and all help would be greatly appreciated.
I have a directory (Telephone Equip.dir) with approximately 40 entries, sub-divided into folders, Phone Systems, Voice Mails, Answering Systems, Other Systems.
I need to access and dial into each system in the Phone Systems sub-folder. After the connection is made I have to change the password for each system with this script. The changes are no problem. However, I need to then write the OLD and NEW information to a file (that contains the following information:
Entry Name
Company Name
OLD Password
New Password
I know how to make the changes, but cannot automate the Dialing or changes. I am using the following to write all of my changes:
String fName = "New Pswd List.txt"
fopen 2 fName CREATE TEXT
if SUCCESS
fwrite 2 EntryName 20
finsblock 2 20
fwrite 2 OldPassword 10
finsblock 2 10
fputs 2 NewPassword
cTechTwoCount ++
transmit NewPassword
PAUSE 1
transmit "^M"
else
fwrite 2 sTok1 6
finsblock 2 20
fwrite 2 OldPassword 10
finsblock 2 10
fputs 2 sPswdProblem
iTechTwoCount ++
endif
Any and all help would be greatly appreciated.