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!

Sort Revisited 1

Status
Not open for further replies.

1LastTime

Technical User
Nov 6, 2002
9
US
I guess I could not use Aspect but I found out I could you the MSDOS 'Sort.exe'. It works ok but after reading about it's issues, I found another called rpsort which I'm working with now. For your review(if you want)from the script. Any better ideas are welcome.

string sSortTxt="sort.exe"
string sOPER1 = " /+1 ",sOPER2 = " /O "
string sTempSort = "Sorted.txt"
integer TaskId

strfmt sStatus " * Sorting from %s to %s" sOutPutFile sTempSort
dlgupdate 100 300
pause 1
fetch capture path sCAP_PATH
chdir sCAP_PATH

strcat sSortTxt sOPER1
strcat sSortTxt sOutPutFile
strcat sSortTxt sOPER2
strcat sSortTxt sTempSort

DOS sSortTxt HIDDEN TaskId
while taskexists TaskId
YIELD
endwhile
sDone2="Done"
dlgupdate 100 16
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top