Guest savvyscriptech Posted May 21, 2005 Share Posted May 21, 2005 Hi Guys, I'm new on AUTOIT V3 scripting and I found it very easy and useful in my logon auto script. However, I found difficulty regarding @comspec command to be specific in hiding DOS window while script is running. I use the DOS shell command erase /s /f Filename.File Extension to delete all certain files in all sub directories. I emposed that command in Autoit script and it work okay. But, I want to hide the window so that user would not able to close the window. I used the flat @SW_HIDE but it turned out an error and autoit script will not run. Any ideas or script recommendation on my recent problem is highly appreciated. Thank you in advance and thanks AUTOIT team. SavvyscriptGuy..... Link to comment Share on other sites More sharing options...
Developers Jos Posted May 21, 2005 Developers Share Posted May 21, 2005 Hi Guys,I'm new on AUTOIT V3 scripting and I found it very easy and useful in my logon auto script. However, I found difficulty regarding @comspec command to be specific in hiding DOS window while script is running. I use the DOS shell command erase /s /f Filename.File Extension to delete all certain files in all sub directories. I emposed that command in Autoit script and it work okay. But, I want to hide the window so that user would not able to close the window. I used the flat @SW_HIDE but it turned out an error and autoit script will not run.Any ideas or script recommendation on my recent problem is highly appreciated.Thank you in advance and thanks AUTOIT team.SavvyscriptGuy.....<{POST_SNAPBACK}>its easier when you show the run command and the error you get...So let me try one 'Wild guess" ..Run("your command", @SW_HIDE) right ??Should be;Run("your command","", @SW_HIDE) ?? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Guest savvyscriptech Posted May 22, 2005 Share Posted May 22, 2005 Hi JDEB, This is the line command: Runwait(@comspec &" /C erase /f D:\Temp\*.pif", @SW_HIDE) and it gives me an error that command is not available. Could you please help me find the right solution. thanks.... Link to comment Share on other sites More sharing options...
herewasplato Posted May 22, 2005 Share Posted May 22, 2005 (edited) Hi JDEB,This is the line command:Runwait(@comspec &" /C erase /f D:\Temp\*.pif", @SW_HIDE)and it gives me an error that command is not available. Could you please help me find the right solution.thanks....<{POST_SNAPBACK}>tryRunwait(@comspec &" /C erase /f D:\Temp\*.pif","", @SW_HIDE)or tryFileDelete("D:\Temp\*.pif")Edit: looks like you guessed right JdeB Edited May 22, 2005 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Guest savvyscriptech Posted May 23, 2005 Share Posted May 23, 2005 Thanks @herewasplato.. you are a god.. thanks for the tips it worked........ 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