A little project

Page 1 of 3 1, 2, 3  Next

View previous topic View next topic Go down

A little project

Post by capn qwerty on Tue Jun 16, 2009 10:32 pm

There are two computers in my house, and they're both on the same network. I want to be able to shut the other one down from this comp, either real-time or at a specific time.
How do I do it?

capn qwerty
Lord's Personal Minion

Male Number of posts: 2736
Age: 18
Registration date: 2008-03-24

View user profile

Back to top Go down

Re: A little project

Post by Angatar on Tue Jun 16, 2009 10:33 pm

You get a really long pole.

_________________

Angatar
Lord's Personal Minion

Male Number of posts: 3674
Age: 16
Location: Long Island
Registration date: 2008-07-19

View user profile

Back to top Go down

Re: A little project

Post by ReconToaster on Tue Jun 16, 2009 10:35 pm

hmmm... Look into batch coding. It's a pretty simple language for stuff like that.

ReconToaster
Lord's Personal Minion

Male Number of posts: 2694
Age: 19
Location: Ohio
Registration date: 2008-06-20

View user profile

Back to top Go down

Re: A little project

Post by CivBase on Tue Jun 16, 2009 10:36 pm

There's a DOS command for this... but I've tried it at school and I couldn't get it to work. Could be the school's doing, though.

Shutdown Command via Command Prompt

The shutdown command becomes more flexible and automated when used from the command prompt. To run the shutdown command from the command prompt, go to start, run, type cmd, and press enter. In the black box (the command prompt) type shutdown and the switches you want to use with the shutdown command. You have to use at east one switch for the shutdown command to work.

The Switches

The shutdown command has a few options called switches. You can always see them by typing shutdown -? in the command prompt if you forget any of them.

-i: Display GUI interface, must be the first option
-l: Log off (cannot be used with -m option)
-s: Shutdown the computer
-r: Shutdown and restart the computer
-a: Abort a system shutdown
-m \\computername: Remote computer to shutdown/restart/abort
-t xx: Set timeout for shutdown to xx seconds
-c “comment”: Shutdown comment (maximum of 127 characters)
-f: Forces running applications to close without warning
-d [u][p]:xx:yy: The reason code for the shutdown u is the user code p is a planned shutdown code xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536)

Please note: I’ve noticed using a switch with a – sign doesn’t work sometimes. If you are having trouble try using a / in place of – in your switches.

Examples

shutdown –m \\computername –r –f This command will restart the computer named computername and force any programs that might still be running to stop.

shutdown –m \\computername –r –f –c “I’m restarting your computer. Please save your work now.” –t 120 This command will restart the computer named computername, force any programs that might still be running to stop, give to user on that computer a message, and countdown 120 seconds before it restarts.

shutdown –m \\computername –a This command will abort a previous shutdown command that is in progress.

_________________

CivBase
Adbot

Male Number of posts: 6708
Age: 19
Location: Etchisketchistan
Registration date: 2008-04-27

View user profile http://pathwaygames.forumotion.net/

Back to top Go down

Re: A little project

Post by KristallNacht on Tue Jun 16, 2009 10:39 pm

or civ can explain it instead lol

KristallNacht
Unholy Demon Of The Flame

Male Number of posts: 4611
Location: Naha, Okinawa, Japan
Registration date: 2008-06-25

View user profile

Back to top Go down

Re: A little project

Post by CivBase on Tue Jun 16, 2009 10:40 pm

I win Razz

_________________

CivBase
Adbot

Male Number of posts: 6708
Age: 19
Location: Etchisketchistan
Registration date: 2008-04-27

View user profile http://pathwaygames.forumotion.net/

Back to top Go down

Re: A little project

Post by capn qwerty on Tue Jun 16, 2009 10:41 pm

How do I find its defined name on the network, or the network associated IP?

capn qwerty
Lord's Personal Minion

Male Number of posts: 2736
Age: 18
Registration date: 2008-03-24

View user profile

Back to top Go down

Re: A little project

Post by BBJynne on Tue Jun 16, 2009 10:47 pm

capn qwerty wrote:How do I find its defined name on the network, or the network associated IP?


I'll tell you how.

You've just got to...



FIRE THE PANZERSHREK!!!!

BBJynne
The Lord's Blood Knight

Male Number of posts: 5046
Age: 19
Registration date: 2008-03-24

View user profile

Back to top Go down

Re: A little project

Post by Angatar on Tue Jun 16, 2009 10:50 pm

BBJynne wrote:
capn qwerty wrote:How do I find its defined name on the network, or the network associated IP?


I'll tell you how.

You've just got to...



FIRE THE PANZERSHREK!!!!

I love you.

_________________

Angatar
Lord's Personal Minion

Male Number of posts: 3674
Age: 16
Location: Long Island
Registration date: 2008-07-19

View user profile

Back to top Go down

Re: A little project

Post by CivBase on Tue Jun 16, 2009 10:52 pm

capn qwerty wrote:How do I find its defined name on the network, or the network associated IP?

I believe you can find the IP by using the ipconfig command in DOS.

As for the defined name, try opening control panel (make sure it's in the classic view), then open system. There should be a tab called "computer name". Try that.

_________________

CivBase
Adbot

Male Number of posts: 6708
Age: 19
Location: Etchisketchistan
Registration date: 2008-04-27

View user profile http://pathwaygames.forumotion.net/

Back to top Go down

Re: A little project

Post by KristallNacht on Tue Jun 16, 2009 10:53 pm

capn qwerty wrote:How do I find its defined name on the network, or the network associated IP?


is your network currently set up so any amount of file sharing happens? Like if on your computer you turn on windows media player file sharing, can the other computer (easiest with itunes) pick up the library and access it?

KristallNacht
Unholy Demon Of The Flame

Male Number of posts: 4611
Location: Naha, Okinawa, Japan
Registration date: 2008-06-25

View user profile

Back to top Go down

Re: A little project

Post by capn qwerty on Tue Jun 16, 2009 10:56 pm

CivBase wrote:
capn qwerty wrote:How do I find its defined name on the network, or the network associated IP?

I believe you can find the IP by using the ipconfig command in DOS.

As for the defined name, try opening control panel (make sure it's in the classic view), then open system. There should be a tab called "computer name". Try that.

DOS?

KristallNacht wrote:
capn qwerty wrote:How do I find its defined name on the network, or the network associated IP?


is your network currently set up so any amount of file sharing happens? Like if on your computer you turn on windows media player file sharing, can the other computer (easiest with itunes) pick up the library and access it?

I have no idea.

capn qwerty
Lord's Personal Minion

Male Number of posts: 2736
Age: 18
Registration date: 2008-03-24

View user profile

Back to top Go down

Re: A little project

Post by Angatar on Tue Jun 16, 2009 10:57 pm

Don't go through all this technical crap and just get a long pole.

_________________

Angatar
Lord's Personal Minion

Male Number of posts: 3674
Age: 16
Location: Long Island
Registration date: 2008-07-19

View user profile

Back to top Go down

Re: A little project

Post by KristallNacht on Tue Jun 16, 2009 10:58 pm

capn qwerty wrote:
DOS?


Default Operating System.

Its basically what you have when you uninstall whatever you have installed.

Your computer though, references it as 'command prompt' lol

KristallNacht
Unholy Demon Of The Flame

Male Number of posts: 4611
Location: Naha, Okinawa, Japan
Registration date: 2008-06-25

View user profile

Back to top Go down

Re: A little project

Post by capn qwerty on Tue Jun 16, 2009 11:01 pm

Ah. Can I find the other comps address from here? Or do I have to do it from there?

capn qwerty
Lord's Personal Minion

Male Number of posts: 2736
Age: 18
Registration date: 2008-03-24

View user profile

Back to top Go down

Page 1 of 3 1, 2, 3  Next

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum