Link to home
Start Free TrialLog in
Avatar of NetRock6
NetRock6Flag for Canada

asked on

Hta File displays dynamic File names

Hi ...

There is a simple hta file popup asking users to wait till the background process finishes off.
the background process creates few files in the temp directory as it advances to next action.
is there way for the hta popup to read the files in the temp directory, and display each file name, as soon as, it gets created by the process.

Thank You For Your Help ...
Avatar of sirbounty
sirbounty
Flag of United States of America image

Do you have a code snippet you can provide?
Here is how to read a file:

Set fso  = CreateObject("Scripting.FileSystemObject")
Set file = fso.OpenTextFile("c:\temp\output.txt", 1)
text = file.ReadAll     
' do something with text
file.Close

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Jeff Darling
Jeff Darling
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NetRock6

ASKER

Excellent ... Thanks for Sharing the Code.... very helpful...
Keep up the great Work!