Jump to content

How can i tell autoit to del shortcuts from desktop?


InViSibLe Gr

Recommended Posts

thanks kelsenellenelvian! :)

i was really needed that one

EDIT

it wasnt working with the -c in the end

cmd saw me the usage of shutdown.exe and -c wasnt there so i removed it and it worked

what is -c doing?

Edited by InViSibLe Gr
Link to comment
Share on other sites


-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

oh! yeah that covers me!

so i guess -c "message" is for wpi, not for batch files

but i dont use it cause i dont know it and cant understant how it works :blushing:

i only use batch and autoit

before 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 them

but i thing its easier with autoit cause i dont need to search for switches and its faster from cabs

and batch files are very simple to make (for me) so i thing i stack with those 2

now i keep the setups in my second HD and only add the batch file to cd to run them and its a lot faster

anywayz...

thanks a lot for your help guys

you were very helfull :thumbup:hello:

Edited by InViSibLe Gr
Link to comment
Share on other sites

oh! yeah that covers me!

so i guess -c "message" is for wpi, not for batch files

but i dont use it cause i dont know it and cant understant how it works :blushing:

i only use batch and autoit

The 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

oh ok

got it now thank you

i saw the switchess explanation with the Shutdown /?

so it is as elajua said

i 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 Windows
echo please wait...
start /wait C:\WINDOWS\system32\shutdown.exe -r -f -t 30 -c

i dint know what -c is and i left it like this

and removed the "To finish installations WPI will now reboot in 30 sec..."

cause when i saw this i thought that it was for WPI

i removed the "message" after -c so thats why it didnt work

btw i had found cmenu yesterday and i like it

i am using autoit, scite and cmenu

very handy progs

i'm finishing the scripts on the fly with them!

i did try PEID with my progs but it can find switches for all of them

and i searched in the forums for switches but still can find them all

so i guess autoit is the answer (for me) :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...