duhu Posted August 6, 2005 Share Posted August 6, 2005 Ive made an gui that by pressing a button run a batch file that clean some files on my hdd. The problem is that the: WinSetState ( "C:\Windows\system32\cmd.exe", "", @SW_MINIMIZE ) it doesnt work.Thats the name of the window.So is there any way to hide or minimize that console window? Srry for my eng Link to comment Share on other sites More sharing options...
LxP Posted August 6, 2005 Share Posted August 6, 2005 You could run it with an initial minimised state: runWait(@comSpec & ' /c C:\MyBatch.bat', '', @SW_MINIMIZE) Link to comment Share on other sites More sharing options...
Amen Posted August 6, 2005 Share Posted August 6, 2005 (edited) The makers of Autoit will say "why the F@ck we spend so time for the Help file??" $msg="dir >c:\dir.log" RunWait(@ComSpec&" /c "&$msg,@WindowsDir&"\System32",@SW_HIDE) $msg="Start notepad c:\dir.log" RunWait(@ComSpec&" /c "&$msg,"",@SW_HIDE) Edited August 6, 2005 by Amen Plugged ThoughtsQBsick? check my Old staff (New Launchers to Work with Windows.Thnx to Autoit!)Game Development ToolsPortes (A Backgammon game)Ball (An Arkanoid Style game)Au3? SecretProgz - Reveals Commands that can be used on your system CleanOut - Uninstall leftovers Enable windows XP Autologon. Stop Windows Auto Sharing your hard drives (C$,D$,etc) D-Link - Create a dynamic link.Useful for server shortcuts Fun - How would your name sounds in Japanese,Russian or Reventian? Fix_srt - Shift a subtitle (.srt) some secs +/- Link to comment Share on other sites More sharing options...
duhu Posted August 10, 2005 Author Share Posted August 10, 2005 I tried that but it didn work That batch call another one and that batch i wanna hide.Its like Jonny (with the commad supplied by u guys) calls Jeremy and Jeremy doesnt want to hide. I really dont know how to explain that very good. sryy for my eng Doohoodogg Link to comment Share on other sites More sharing options...
Dickb Posted August 11, 2005 Share Posted August 11, 2005 I tried that but it didn workThat batch call another one and that batch i wanna hide.Its like Jonny (with the commad supplied by u guys) calls Jeremy and Jeremy doesnt want to hide.I really dont know how to explain that very good.sryy for my engDoohoodogg<{POST_SNAPBACK}>You can try to start the second batch file from the first one like this: start /min <second.bat>It's not hidden but minimized at the task bar.Hope this helps. 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