themush1326 Posted February 8, 2007 Share Posted February 8, 2007 Opt("RunErrorsFatal", 1) ; 1 means errors will popup. Set to zero for prod. Opt("TrayIconHide",1) RunWait(@comspec & ' /c echo y|chkdsk /f ') The only way to make it stop is right click and exit several time. Any help would be appreciated Link to comment Share on other sites More sharing options...
evilertoaster Posted February 8, 2007 Share Posted February 8, 2007 by 'it stop' you mean the script or the chkdsk? try using run instead of run wait if you want the script to close after it launches the chkdsk Link to comment Share on other sites More sharing options...
themush1326 Posted February 8, 2007 Author Share Posted February 8, 2007 by 'it stop' you mean the script or the chkdsk? try using run instead of run wait if you want the script to close after it launches the chkdskBy stop it mean the only way to stop the Autoit icon from flashing.The check should kick off after a reboot.I've never seen the icon do this.it seems to be tied to this script. Link to comment Share on other sites More sharing options...
evilertoaster Posted February 8, 2007 Share Posted February 8, 2007 runs fine for me, the autoit icon is hidden as expected....is the just like your startup folder? Link to comment Share on other sites More sharing options...
themush1326 Posted February 8, 2007 Author Share Posted February 8, 2007 runs fine for me, the autoit icon is hidden as expected....is the just like your startup folder?What do you mean by "is the just like your startup folder" Link to comment Share on other sites More sharing options...
evilertoaster Posted February 8, 2007 Share Posted February 8, 2007 *the script Link to comment Share on other sites More sharing options...
themush1326 Posted February 8, 2007 Author Share Posted February 8, 2007 *the scriptNo Iam executing it form the C:.Seems to be tied to the Dell Latitude 600, tried it on a few Link to comment Share on other sites More sharing options...
evilertoaster Posted February 8, 2007 Share Posted February 8, 2007 wierd....what about a #NoTrayIcon? Link to comment Share on other sites More sharing options...
Developers Jos Posted February 8, 2007 Developers Share Posted February 8, 2007 No Iam executing it form the C:.Seems to be tied to the Dell Latitude 600, tried it on a fewWhat did you name the script ?Opt("TrayIconHide",1) : The icon will still initially appear ~750 milliseconds.#NoTrayIcon wont show it at all 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...
themush1326 Posted February 8, 2007 Author Share Posted February 8, 2007 (edited) What did you name the script ?Opt("TrayIconHide",1) : The icon will still initially appear ~750 milliseconds.#NoTrayIcon wont show it at allCheckDisk.exeStill flashed even with #NoTrayIcon Edited February 8, 2007 by themush1326 Link to comment Share on other sites More sharing options...
evilertoaster Posted February 8, 2007 Share Posted February 8, 2007 are you sure its not the window you mean thats fliashing? #NoTrayIcon disables the autoit tray icon entirely.... Link to comment Share on other sites More sharing options...
themush1326 Posted February 8, 2007 Author Share Posted February 8, 2007 are you sure its not the window you mean thats fliashing? #NoTrayIcon disables the autoit tray icon entirely....No I can see the AutoIt icon in the tray, I can right click it and see script paused or exit Link to comment Share on other sites More sharing options...
Developers Jos Posted February 8, 2007 Developers Share Posted February 8, 2007 No I can see the AutoIt icon in the tray, I can right click it and see script paused or exitnot possible when you have #NoTrayIcon in the script.Do you have an chkdsk.exe in the script directory ? (old script or something ? ) 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...
themush1326 Posted February 8, 2007 Author Share Posted February 8, 2007 not possible when you have #NoTrayIcon in the script.Do you have an chkdsk.exe in the script directory ? (old script or something ? )That was it, I had a script name chkdsk.exe in the same directorythanks!!!!!!!!!!! Link to comment Share on other sites More sharing options...
Developers Jos Posted February 8, 2007 Developers Share Posted February 8, 2007 That was it, I had a script name chkdsk.exe in the same directorythanks!!!!!!!!!!!sometimes its right under your nose but you are too close to see ... 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...
themush1326 Posted February 11, 2007 Author Share Posted February 11, 2007 Is there a way to hide this window while chkdsk.exe runs? This is the line I'm using to execute RunWait(@comspec & ' /c chkdsk >c:\errors.txt') thanks themush Link to comment Share on other sites More sharing options...
Helge Posted February 11, 2007 Share Posted February 11, 2007 Is there a way to hide this window while chkdsk.exe runs?Look at the third parameter for RunWait... Link to comment Share on other sites More sharing options...
themush1326 Posted February 11, 2007 Author Share Posted February 11, 2007 Look at the third parameter for RunWait...RunWait(@comspec & ' /c chkdsk >c:\errors.txt' & @SW_HIDE)Window Doesnt hideRunWait(@comspec & ' /c chkdsk >c:\errors.txt', @SW_HIDE)Error unable to execute external programthanks Link to comment Share on other sites More sharing options...
Developers Jos Posted February 11, 2007 Developers Share Posted February 11, 2007 RunWait(@comspec & ' /c chkdsk >c:\errors.txt',"", @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...
themush1326 Posted February 11, 2007 Author Share Posted February 11, 2007 RunWait(@comspec & ' /c chkdsk >c:\errors.txt',"", @SW_HIDE)thanksCan you explain why the "" is needed before @sw_hide. 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