Go Back   Computer Forums > General Computing > Hardware
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 08-06-2007, 09:19 AM   #1
In Runtime
 
BamaFan2989's Avatar
 
Join Date: Jun 2006
Posts: 483
Send a message via AIM to BamaFan2989
Default shortcut?

how do i make a shortcut to an exe file, with an option like -shutdown or something... just with an option...

it's not -shutdown but it is an option like that
__________________

BamaFan2989 is offline   Reply With Quote
Old 08-06-2007, 06:31 PM   #2
In Runtime
 
BamaFan2989's Avatar
 
Join Date: Jun 2006
Posts: 483
Send a message via AIM to BamaFan2989
Default Re: shortcut?

bump
__________________

BamaFan2989 is offline   Reply With Quote
Old 08-06-2007, 07:33 PM   #3
Golden Master
 
Thelis's Avatar
 
Join Date: Mar 2007
Posts: 5,410
Send a message via AIM to Thelis Send a message via MSN to Thelis Send a message via Yahoo to Thelis
Default Re: shortcut?

Well, you cannot really make a shortcut to do that. What exactly do you want it to do? You can make a shortcut to any .exe file by right clicking and selecting Make a Shortcut.
Thelis is offline   Reply With Quote
Old 08-06-2007, 07:34 PM   #4
Golden Master
 
dude_se's Avatar
 
Join Date: Nov 2004
Posts: 8,632
Send a message via AIM to dude_se Send a message via MSN to dude_se
Default Re: shortcut?

heres where the shut down file is
C:\WINDOWS\system32\shutdown.exe
a shortcut to that doesnt work. it needs to be loaded through cmd. not sure how to do it
__________________
Laptop spec: ASUS X53E, i5 2430m 2.4ghz, 3gb ram, 320gb hdd, intel hd graphics, usb 3.0
dude_se is offline   Reply With Quote
Old 08-06-2007, 07:37 PM   #5
Daemon Poster
 
Join Date: Dec 2005
Posts: 1,153
Send a message via MSN to DannyBoy
Default Re: shortcut?

ye i dont even think u can do shortcuts like this, maybe im wrong but i dont think u can mate.
DannyBoy is offline   Reply With Quote
Old 08-06-2007, 07:47 PM   #6
Site Team
 
celegorm's Avatar
 
Join Date: Sep 2006
Posts: 10,713
Send a message via AIM to celegorm
Default Re: shortcut?

some one could help with the writing of the batch file, but the command is shudown -s. (no period). If you want to pre-define how long untill it shutsdown (default is thirty seconds I belive) after the "-s' do a space then "-t(space)(number of seconds before shutdown starts)
__________________
"as a fanboy i refuse to admit it and will pull countless things out of my butt to disprove it"

Team Thelegorm! Total Kills: 21 (i iz in uor profile, editsing your sigz)
celegorm is offline   Reply With Quote
Old 08-06-2007, 08:06 PM   #7
Golden Master
 
dude_se's Avatar
 
Join Date: Nov 2004
Posts: 8,632
Send a message via AIM to dude_se Send a message via MSN to dude_se
Default Re: shortcut?

ok i did it. its been left at the standard 30 seconds

http://rapidshare.com/files/47410217/shutdown.bat.html

you can change it though
__________________
Laptop spec: ASUS X53E, i5 2430m 2.4ghz, 3gb ram, 320gb hdd, intel hd graphics, usb 3.0
dude_se is offline   Reply With Quote
Old 08-06-2007, 08:39 PM   #8
In Runtime
 
BamaFan2989's Avatar
 
Join Date: Jun 2006
Posts: 483
Send a message via AIM to BamaFan2989
Default Re: shortcut?

wow that was fast guys, but not exactly what i meant haha... -shutdown was just an example

the thing is this

shortcut to:
<installed directory>/steam/userapps/half-life 2/hll2.exe -steamlocal

that's how i want it.
BamaFan2989 is offline   Reply With Quote
Old 08-06-2007, 08:54 PM   #9
Golden Master
 
dude_se's Avatar
 
Join Date: Nov 2004
Posts: 8,632
Send a message via AIM to dude_se Send a message via MSN to dude_se
Default Re: shortcut?

go to cmd. type "edit test.bat" and type in what you want. then go to file, exit and save. it will be stored in c:\documents and settings\username
__________________
Laptop spec: ASUS X53E, i5 2430m 2.4ghz, 3gb ram, 320gb hdd, intel hd graphics, usb 3.0
dude_se is offline   Reply With Quote
Old 08-06-2007, 08:57 PM   #10
Fully Optimized
 
Computer Head's Avatar
 
Join Date: Jun 2006
Posts: 2,841
Default Re: shortcut?

a shutdown for 60 second delay is as follows:

shutdown -s -t 60

If you want to add a screen with a custom comment, add -c "Comment Here", so it would look like:

shutdown -s -t 60 -c "Friggin Computer Shutting Down, Get Off Immediately"
__________________

__________________
A+, Network+
Official "Birthday Man" of CF.

http://www.yourpcforums.org
Computer Head is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 03:02 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0