Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by jeditom

  1. jeditom

    Waitfor forever substitute with 'Else" type statement.

    This is the script I am trying to adjust. The variables sShelf, sSlot, and sStored are pulled off a text file. When I implement the if/else statement it keeps inputting the first variable from the text file. I need it to get to a point where it will pick up with teh next set of numbers...
  2. jeditom

    Waitfor forever substitute with 'Else" type statement.

    No matter where I place the Restart: the script does not pick up where the variables left off. It keeps restarting at the beginning. Am I missing something obvious?
  3. jeditom

    Waitfor forever substitute with 'Else" type statement.

    That's great. Next question: How do I use the ELSE statement with a GOTO statement that would point m,e back to the top of this script? (Where do I GOTO?) proc main string sLine string sShelf string sSlot string sStored if fopen 0 "d:modems1-4.txt" READ TEXT...
  4. jeditom

    Waitfor forever substitute with 'Else" type statement.

    In the below excerpt, is there a way to remove the "Forever" from the waitfor statement and replace it with an "else" statement that would send us back to the start of the script? THANKS! waitfor "ENTER SHELF : ^[[24;28H" Forever transmit sShelf transmit "^M"
  5. jeditom

    Open a .vbs file at end if script

    How do I get my script to open a .vbs file at the end of the script? (the .vbs file will be a popup box that signifies the script has completed)
  6. jeditom

    Direct fopen to an alternate drive

    Figured it out, thanks anyway. As is typical, just added the drive and colon (a:)
  7. jeditom

    Direct fopen to an alternate drive

    In the below script excerpt, is there a way to direct the script to look in the a: or d: drive for the text file "nychips1.txt"? if fopen 0 "nychips1.txt" READ TEXT ; TELNET INTO THE CONTROLLER connectmanual telnet "89.1.16.101
  8. jeditom

    Pulling script variables from multiple files.

    (assumes the data has already been read in from a file and is in the variable sLine): Knob, One more please. I cannot get the script (sLine) to reference my data.txt file and ge the variables ? ? ?
  9. jeditom

    Pulling script variables from multiple files.

    I am unsure how to relate that to a TRANSMIT statement
  10. jeditom

    Pulling script variables from multiple files.

    Knob, I am unfamiliar with the strextract command. Can you hook me up with an example?
  11. jeditom

    Pulling script variables from multiple files.

    In the first few steps in the script below, is there a way to have the shelf number pulled from one text file and the slot number pulled from another. (In other words, I need the numbers transmitted in both those steps to be grabbed from a text file. Can I use the same text file and separate...
  12. jeditom

    getting data from a text file via a loop

    That worked great, THANKS! The final piece of the puzzle is to loop the entire script below until the data.txt file has no more lines. (The overall goal is to telnet in to the controller card and enter different slots on the rack (as per the data.txt file) and executing the steps to put that...
  13. jeditom

    getting data from a text file via a loop

    OH NO! No matter what I do I cannot get two digits transmitted. If I do it manually with transmit lines I need to transit one digit, waitquiet 1, then transmit the second digit. I believe the delay exists on the Adtran controller I am telnetted into. Is there a way to modify the file below...
  14. jeditom

    getting data from a text file via a loop

    KNOB, YOU TOTALLY ROCK! But ... one last question (I hope) How do i set it up to grab one OR two digit numbers from the text file? (the parameters are 1-15) THANKS!!!!!
  15. jeditom

    getting data from a text file via a loop

    The line that reads: ; ENTER THE SLOT NUMBER waitfor "ENTER SLOT : ^[[24;27H" Forever transmit "1" waitquiet 1 transmit "^M" It is the data transmitted during this step that will be pulled from a text file. All...

Part and Inventory Search

Back
Top