HTA value update freezes when file copy starts
- by Matt Hamende
Creating an HTA that will automate the installation of several applications
it starts by checking for the existence of certain files then copies a large folder to local from a flash drive if it doesn't exist, I have a textbox I'm using to update the current status of the script, but it just seems to freeze and never updates, I haven't had any luck with any of the artificial sleep functions either.
here's the segment
If Not objFSO.FileExists(Office10Dir) Then
MsgBox("Excel is missing")
BasicTextBox.Value = "Office14 Not Detected, Copying Source Files to Local"
Dim objFS, objFolder
Dim OfficeTemp
OfficeTemp = "C:\OfficeTemp"
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFS.CreateFolder(OfficeTemp)
objFS.CopyFolder "OfficeTemp", "C:\OfficeTemp"
BasicTextBox.Value = "Local Temp Directory Created"
ELSE
MsgBox("Excel is Installed")
END IF
All i see is the "Local Temp Directory Created" message once file copy is complete