ankur3020
asked on
stop execution of vbs file
execution of vbs file stops when i press shift+A+B in same flow. Please provide code.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
BTW did you try stop the execution by pressing CTRL+C?
ASKER
strange can clt+C stop the execution of vbs file? if yes tell me how to prevent it.
any way please note, there is a file with infinite loop i.e. which once started will keep on running. now i want to add some keys or some coding which help me to stop it when required. i do not want any inputbox to be displayed for me . i want if some key is pressed with combination of some other key execution stops. pls amend the above code as required.
any way please note, there is a file with infinite loop i.e. which once started will keep on running. now i want to add some keys or some coding which help me to stop it when required. i do not want any inputbox to be displayed for me . i want if some key is pressed with combination of some other key execution stops. pls amend the above code as required.
If your vbs will run in background with no user interface than your request is not possible
ASKER
ok, but can we do something like the inputbox will raise if i press some special key all till time vbs file run in background
no its impossible.
I have read all questions you posted here. it seems like you want to implement some sort of security but you choose wrong tools and methods to do it. If you'll explain what is your problem and what you want to achieve I am sure you will get much more helpful comments
I have read all questions you posted here. it seems like you want to implement some sort of security but you choose wrong tools and methods to do it. If you'll explain what is your problem and what you want to achieve I am sure you will get much more helpful comments
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i run ur attached code,it is giving error pls check. error at line 3 , invalid handle
Do While true
Wscript.StdOut.Write "Enter a Decimal Number (Enter 0 to exit): "
strDecimal = Wscript.StdIn.ReadLine
if strDecimal="0" then
Wscript.StdOut.WriteLine "Exiting..."
Wscript.Quit
Else
Wscript.StdOut.WriteLine strDecimal & " is equal to " & _
Hex(strDecimal) & " in hex."
end if
Loop
ASKER