InViSibLe Gr Posted March 1, 2006 Author Share Posted March 1, 2006 (edited) thanks kelsenellenelvian! i was really needed that oneEDITit wasnt working with the -c in the endcmd saw me the usage of shutdown.exe and -c wasnt there so i removed it and it workedwhat is -c doing? Edited March 1, 2006 by InViSibLe Gr Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted March 2, 2006 Share Posted March 2, 2006 Hmmmm no clue that is just the code I use in WPI. Link to comment Share on other sites More sharing options...
ajua Posted March 2, 2006 Share Posted March 2, 2006 -c stands for Comment.-r shuts down and reboot your computer-f forces the closing of running processes and programs.-t xx where xx is the time you want to wait before the shutdown sequence is started. must be i seconds. NOTE: i used between 90-120 seconds to be sure everything that i just installed silently and windows are initialized correctly before shutting all down. it all depends on how much do you installed (oh yes, i install a LOT of stuff )-c "Your Custom Message"in the syntax it makes the shutdown window display your custom message. your msg cant exceed 127 characters.hope this covers your question. Link to comment Share on other sites More sharing options...
InViSibLe Gr Posted March 2, 2006 Author Share Posted March 2, 2006 (edited) oh! yeah that covers me!so i guess -c "message" is for wpi, not for batch filesbut i dont use it cause i dont know it and cant understant how it works i only use batch and autoitbefore that i was using addon cabs (but setup was slow cause it took a lot of time to extract them)i have 53 progs to install... and i could not find the switches for all of thembut i thing its easier with autoit cause i dont need to search for switches and its faster from cabsand batch files are very simple to make (for me) so i thing i stack with those 2now i keep the setups in my second HD and only add the batch file to cd to run them and its a lot fasteranywayz...thanks a lot for your help guysyou were very helfull Edited March 2, 2006 by InViSibLe Gr Link to comment Share on other sites More sharing options...
MHz Posted March 2, 2006 Share Posted March 2, 2006 oh! yeah that covers me!so i guess -c "message" is for wpi, not for batch filesbut i dont use it cause i dont know it and cant understant how it works i only use batch and autoitThe switches for Shutdown.exe have nothing to do with WPI as shown above. Type Shutdown /? at a cmd prompt to see for yourself.You may also want to checkout my CMenu program. It has some nice abilities built in for making AutoIt install scripts quickly. Also can identify installers for known switches... Link to comment Share on other sites More sharing options...
InViSibLe Gr Posted March 2, 2006 Author Share Posted March 2, 2006 oh okgot it now thank you i saw the switchess explanation with the Shutdown /? so it is as elajua saidi was connfused cause kelsenellenelvian's command was-c "To finish installations WPI will now reboot in 30 sec..."and i did it in batch like this :echo.echo Restarting Windowsecho please wait...start /wait C:\WINDOWS\system32\shutdown.exe -r -f -t 30 -ci dint know what -c is and i left it like thisand removed the "To finish installations WPI will now reboot in 30 sec..."cause when i saw this i thought that it was for WPIi removed the "message" after -c so thats why it didnt workbtw i had found cmenu yesterday and i like iti am using autoit, scite and cmenuvery handy progsi'm finishing the scripts on the fly with them!i did try PEID with my progs but it can find switches for all of themand i searched in the forums for switches but still can find them allso i guess autoit is the answer (for me) 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