NetRock6
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 ...
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 ...
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent ... Thanks for Sharing the Code.... very helpful...
Keep up the great Work!
Keep up the great Work!