teletubby5e
Technical User
HEY ,
I AM BACK AGAIN. THIS TIME I AM TRYING TO FIND THE RIGHT SYNTAX TO HAVE MY SDLGFOPEN COMMAND POP OPEN A BOX WITH A SPECIFIC PATH. TRY AS I MIGHT, I ALWAYS GET THE ASPECT DIRECTORY. IS THERE A GLOBAL COMMAND LIKE SET DIRPATH OR SOMETHING SIMILAR THAT WILL MAKE THE BOX POP OPEN IN MY SPECIFIED PATH. OR A WAY TO REFRESH THE PATH. I KNOW THAT IT IS A SMALL HASSLE, BUT ESPECIALLY IN APPS THAT I AM TRYING TO WRITE FOR SPECIFIC USERS THAT MAY ONLY HAVE ACCESS TO CERTAIN DRIVES, THIS WOULD CERTAINLY BE HANDIER. MAYBE SOMEONE CAN JUST POINT ME TO THE RIGHT COMMAND. HERE IS A SCALED VERSION OF WHAT I HAVE NOW THAT READS A TEXT FILE, AND BUILDS THESE NUMBERS INTO A LUCENT SWITCH. (OH YEAH .... RUNNING XP IF THAT IS AN ISSUE)
THANKS, JEFF
PROC MAIN
STRING NUM1
STRING DIDNUMADD
STRING FYLE
INTEGER EOF
INTEGER RESULT
; TRYING ANYTHING AND EVERYTHING IN NEXT 6 LINES
string Cmd ; DOS command to execute.
set capture path "D:\"
SET scriptpath "D:\"
SET ASPECT PATH "D:\"
Cmd = "CD D:\" ; Set DOS command to execute.
DOS Cmd HIDDEN ; Run DOS command hidden.
sdlgfopen "LOCATE" "d:\*.txt" SINGLE FYLE
fopen 1 FYLE READ TEXT
TRANSMIT "RCV:APPTEXT!"
WAITFOR ": "
FEOF 1 EOF
WHILE !EOF
FGETS 1 NUM1
FEOF 1 EOF
STRCMP NUM1 "" RESULT
IF RESULT != 0
STRFMT DIDNUMADD "TN=%.10s!" NUM1
TRANSMIT "FORM=1V5&NEW!"
WAITFOR ": "
TRANSMIT DIDNUMADD
WAITFOR ": "
TRANSMIT "NEW!"
WAITFOR ": "
ENDIF
ENDWHILE
TRANSMIT "END;"
ENDPROC
I AM BACK AGAIN. THIS TIME I AM TRYING TO FIND THE RIGHT SYNTAX TO HAVE MY SDLGFOPEN COMMAND POP OPEN A BOX WITH A SPECIFIC PATH. TRY AS I MIGHT, I ALWAYS GET THE ASPECT DIRECTORY. IS THERE A GLOBAL COMMAND LIKE SET DIRPATH OR SOMETHING SIMILAR THAT WILL MAKE THE BOX POP OPEN IN MY SPECIFIED PATH. OR A WAY TO REFRESH THE PATH. I KNOW THAT IT IS A SMALL HASSLE, BUT ESPECIALLY IN APPS THAT I AM TRYING TO WRITE FOR SPECIFIC USERS THAT MAY ONLY HAVE ACCESS TO CERTAIN DRIVES, THIS WOULD CERTAINLY BE HANDIER. MAYBE SOMEONE CAN JUST POINT ME TO THE RIGHT COMMAND. HERE IS A SCALED VERSION OF WHAT I HAVE NOW THAT READS A TEXT FILE, AND BUILDS THESE NUMBERS INTO A LUCENT SWITCH. (OH YEAH .... RUNNING XP IF THAT IS AN ISSUE)
THANKS, JEFF
PROC MAIN
STRING NUM1
STRING DIDNUMADD
STRING FYLE
INTEGER EOF
INTEGER RESULT
; TRYING ANYTHING AND EVERYTHING IN NEXT 6 LINES
string Cmd ; DOS command to execute.
set capture path "D:\"
SET scriptpath "D:\"
SET ASPECT PATH "D:\"
Cmd = "CD D:\" ; Set DOS command to execute.
DOS Cmd HIDDEN ; Run DOS command hidden.
sdlgfopen "LOCATE" "d:\*.txt" SINGLE FYLE
fopen 1 FYLE READ TEXT
TRANSMIT "RCV:APPTEXT!"
WAITFOR ": "
FEOF 1 EOF
WHILE !EOF
FGETS 1 NUM1
FEOF 1 EOF
STRCMP NUM1 "" RESULT
IF RESULT != 0
STRFMT DIDNUMADD "TN=%.10s!" NUM1
TRANSMIT "FORM=1V5&NEW!"
WAITFOR ": "
TRANSMIT DIDNUMADD
WAITFOR ": "
TRANSMIT "NEW!"
WAITFOR ": "
ENDIF
ENDWHILE
TRANSMIT "END;"
ENDPROC