Hi,
i have an hta program that backs up files from c: drive to a cd. i have finished all the components of the hta, inputs, drives, file selections, etc. but the cd copy command is a dos app that runs from the command prompt. this command runs from vbs but when i imbed the vb script in the hta, it doesn't run. the cmd screen flashes and goes away, instead of staying and displaying the dos command and the results of the copy.
here's what i have tried:
it doesn't work
then i tried this:
xxx.vbs is the program that runs the same command that didn't work in the above.
if i run xxx.vbs by itself, it works.
any ideas how to get around this?
thanks
i have an hta program that backs up files from c: drive to a cd. i have finished all the components of the hta, inputs, drives, file selections, etc. but the cd copy command is a dos app that runs from the command prompt. this command runs from vbs but when i imbed the vb script in the hta, it doesn't run. the cmd screen flashes and goes away, instead of staying and displaying the dos command and the results of the copy.
here's what i have tried:
Code:
wshshell.Run("cmd.exe /c createcd.exe d: c:\folder\file.txt")
then i tried this:
Code:
Set wseExternal = wshShell.Exec("wscript.exe //NOLOGO xxx.vbs")
if i run xxx.vbs by itself, it works.
any ideas how to get around this?
thanks