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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

REFRESHING THE ASPECT PATH? 1

Status
Not open for further replies.

teletubby5e

Technical User
Oct 31, 2002
147
US
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


 
If XP is behaving anything like Win2K does, then this is a bug in ASPECT. There is no script workaround that I am aware of. The only idea I had was to use the sendkey and sendkeystr commands to manually navigate the dialog, but that does not work since those commands don't get executed until after the sdlgfopen command has completed.

If you create a dialog using the dialogbox command and related commands, such as flistbox, you may be able to work around this problem, but I don't have a Win2K machine handy at the moment to double check this thought.
aspect@aspectscripting.com
 
Dug out the laptop with Win2K on it and you can use a dialogbox with dirpath and dirlistbox as a workaround (take a look at the sample script for dirlistbox in the ASPECT help file for an example).
aspect@aspectscripting.com
 
The "Compile Options" allows you to set the "Aspect Include Path". It only allows about 80 characters in this field. I defined the environmental variable "PROCOMM_INC" to be "C:\cygwin\home\elmerf\projects\testScripts\LDM_UTs\COMMON"

Now I want to put the environmental variable "PROCOMM_INC" into the field for "Aspect Include Path".

I tried "$PROCOMM_INC" and "PROCOMM_INC" and neither works.

any suggestions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top