battleangel3222 Posted September 19, 2004 Share Posted September 19, 2004 Hi guys. Was wondering if I can get it to put text up with a color, then sleep for .5 seconds or 1 second, then switch colors...over and over. Any help? thanks! I want my batch file to look really great. Thanks! Link to comment Share on other sites More sharing options...
MCT Posted September 19, 2004 Share Posted September 19, 2004 hi..download sleep.exe (search 4 it) & in your batch file use COLOR Link to comment Share on other sites More sharing options...
battleangel3222 Posted September 19, 2004 Author Share Posted September 19, 2004 tried it......sleep minimum is 1 second, and its too long to flash...i tried .5 but it didnt work any ideas? Link to comment Share on other sites More sharing options...
jdoe Posted September 19, 2004 Share Posted September 19, 2004 Copy the code below in a file called SLEEP.VBS and it will take milliseconds. Look at the other code to see how to write your batch with it. It's strange what you wanna do but this is a solution.SLEEP.VBSIf WScript.Arguments.Count = 1 Then WScript.Sleep WScript.Arguments(0)End IfBATCH FILECOLOR 07SLEEP.VBS 500COLOR 70SLEEP.VBS 500COLOR 07SLEEP.VBS 500COLOR 70SLEEP.VBS 500COLOR 07 Link to comment Share on other sites More sharing options...
prathapml Posted September 19, 2004 Share Posted September 19, 2004 You need to call the VBS with "wscript" or "cscript" to be sure it will run.And that will take up more time than just the 0.5 seconds you want it to. Just sticking to what's scriptable right within the batch-files sounds better.One option is to ping 127.0.0.1 for as many times (or milli-secs) as needed to wait. That way, no sleep.exe or VBS is needed. Of course, the COLOR command is simple enough, use it after the inter-mittent pings. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now