A little project

Page 1 of 2 1, 2  Next

Go down

A little project Empty A little project

Post by capn qwerty on Tue Jun 16, 2009 4: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
capn qwerty
Lord's Personal Minion

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

Back to top Go down

A little project Empty Re: A little project

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

You get a really long pole.

_________________
A little project Angatarcopy-1
Angatar
Angatar
Lord's Personal Minion

Female Number of posts : 3862
Age : 24
Location : Long Island
Registration date : 2008-07-18

Back to top Go down

A little project Empty Re: A little project

Post by Toaster on Tue Jun 16, 2009 4:35 pm

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

Male Number of posts : 2715
Age : 26
Location : Ohio
Registration date : 2008-06-19

Back to top Go down

A little project Empty Re: A little project

Post by CivBase on Tue Jun 16, 2009 4: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.

_________________
A little project Bzsigy2
CivBase
CivBase
Adbot

Male Number of posts : 7336
Location : Etchisketchistan
Registration date : 2008-04-27

http://pathwaygames.forumotion.net/

Back to top Go down

A little project Empty Re: A little project

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

or civ can explain it instead lol
KristallNacht
KristallNacht
Unholy Demon Of The Flame

Male Number of posts : 5087
Location : San Diego, California
Registration date : 2008-06-24

Back to top Go down

A little project Empty Re: A little project

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

I win Razz

_________________
A little project Bzsigy2
CivBase
CivBase
Adbot

Male Number of posts : 7336
Location : Etchisketchistan
Registration date : 2008-04-27

http://pathwaygames.forumotion.net/

Back to top Go down

A little project Empty Re: A little project

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

How do I find its defined name on the network, or the network associated IP?
capn qwerty
capn qwerty
Lord's Personal Minion

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

Back to top Go down

A little project Empty Re: A little project

Post by BBJynne on Tue Jun 16, 2009 4: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 : 5059
Age : 27
Registration date : 2008-03-24

Back to top Go down

A little project Empty Re: A little project

Post by Angatar on Tue Jun 16, 2009 4: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.

_________________
A little project Angatarcopy-1
Angatar
Angatar
Lord's Personal Minion

Female Number of posts : 3862
Age : 24
Location : Long Island
Registration date : 2008-07-18

Back to top Go down

A little project Empty Re: A little project

Post by CivBase on Tue Jun 16, 2009 4: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.

_________________
A little project Bzsigy2
CivBase
CivBase
Adbot

Male Number of posts : 7336
Location : Etchisketchistan
Registration date : 2008-04-27

http://pathwaygames.forumotion.net/

Back to top Go down

A little project Empty Re: A little project

Post by KristallNacht on Tue Jun 16, 2009 4: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
KristallNacht
Unholy Demon Of The Flame

Male Number of posts : 5087
Location : San Diego, California
Registration date : 2008-06-24

Back to top Go down

A little project Empty Re: A little project

Post by capn qwerty on Tue Jun 16, 2009 4: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
capn qwerty
Lord's Personal Minion

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

Back to top Go down

A little project Empty Re: A little project

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

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

_________________
A little project Angatarcopy-1
Angatar
Angatar
Lord's Personal Minion

Female Number of posts : 3862
Age : 24
Location : Long Island
Registration date : 2008-07-18

Back to top Go down

A little project Empty Re: A little project

Post by KristallNacht on Tue Jun 16, 2009 4: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
KristallNacht
Unholy Demon Of The Flame

Male Number of posts : 5087
Location : San Diego, California
Registration date : 2008-06-24

Back to top Go down

A little project Empty Re: A little project

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

Ah. Can I find the other comps address from here? Or do I have to do it from there?
capn qwerty
capn qwerty
Lord's Personal Minion

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

Back to top Go down

A little project Empty Re: A little project

Post by BBJynne on Tue Jun 16, 2009 5:03 pm

Angatar wrote:I love you.
<3

BBJynne
The Lord's Blood Knight

Male Number of posts : 5059
Age : 27
Registration date : 2008-03-24

Back to top Go down

A little project Empty Re: A little project

Post by CivBase on Tue Jun 16, 2009 5:04 pm

capn qwerty wrote:Ah. Can I find the other comps address from here? Or do I have to do it from there?
I've never tried. I doubt it, though, as you'd have to either have a connection with the computer, or already know it's IP to find it.

_________________
A little project Bzsigy2
CivBase
CivBase
Adbot

Male Number of posts : 7336
Location : Etchisketchistan
Registration date : 2008-04-27

http://pathwaygames.forumotion.net/

Back to top Go down

A little project Empty Re: A little project

Post by Death no More on Tue Jun 16, 2009 5:31 pm

ignore
Death no More
Death no More
Lord's Personal Minion

Male Number of posts : 2178
Age : 24
Location : Spreading Holy convergence in the sprawl.
Registration date : 2009-03-29

Back to top Go down

A little project Empty Re: A little project

Post by Onyxknight on Tue Jun 16, 2009 5:41 pm

You could always hire a ninja
Onyxknight
Onyxknight
Minion

Male Number of posts : 1833
Age : 25
Location : wherever i want to be....maybe in your house o.O
Registration date : 2008-03-24

Back to top Go down

A little project Empty Re: A little project

Post by Gauz on Tue Jun 16, 2009 7:25 pm

Angatar wrote:
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.
I gigged 8 rams Razz
Gauz
Gauz
Crimson Medic

Male Number of posts : 7687
Registration date : 2009-02-11

Back to top Go down

A little project Empty Re: A little project

Post by capn qwerty on Wed Jun 17, 2009 8:18 am

I've run into a problem. I can get it so that it shuts down in X amount of time, but a window pops up as soon as I enter the comman, saying that the comp will shut down in X amount of time and to save and crap. This would be as big a deal if I could send the command from here, but I can't.

Is there a way to make it so that that window doesn't pop up until, say, 2 minutes before I want the comp to shutdown? Or better yet, make it so that it shuts down everytime the clock says a specific time?
capn qwerty
capn qwerty
Lord's Personal Minion

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

Back to top Go down

A little project Empty Re: A little project

Post by RX on Wed Jun 17, 2009 9:27 am

Shut down the comp?

TNT.
RX
RX
Minion

Male Number of posts : 1957
Age : 25
Location : Ancient Kingdom of Norwegia
Registration date : 2008-12-12

Back to top Go down

A little project Empty Re: A little project

Post by Rasq'uire'laskar on Wed Jun 17, 2009 2:29 pm

Angatar wrote:
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.
I love him even more. YES!
Rasq'uire'laskar
Rasq'uire'laskar
Crimson Scribe

Male Number of posts : 2927
Age : 29
Location : Follow the cold shivers running down your spine.
Registration date : 2008-06-29

Back to top Go down

A little project Empty Re: A little project

Post by Kasrkin Seath on Wed Jun 17, 2009 2:45 pm

Wow. My project is waaaaaay different than yours
Kasrkin Seath
Kasrkin Seath
The Law

Male Number of posts : 3018
Location : Michigan
Registration date : 2008-07-12

Back to top Go down

A little project Empty Re: A little project

Post by CivBase on Wed Jun 17, 2009 4:30 pm

capn qwerty wrote:I've run into a problem. I can get it so that it shuts down in X amount of time, but a window pops up as soon as I enter the comman, saying that the comp will shut down in X amount of time and to save and crap. This would be as big a deal if I could send the command from here, but I can't.

Is there a way to make it so that that window doesn't pop up until, say, 2 minutes before I want the comp to shutdown? Or better yet, make it so that it shuts down everytime the clock says a specific time?
I've never done it, but I have an idea.

1.) Open Notepad and type in shutdown. Save the file as a .bat file in your My Documents folder (or wherever you will remember).
2.) Go to C:\WINDOWS\Tasks and double click on "Add Scheduled Task". This will open the Scheduled Task Wizard. Click Next.
3.) Click the "Browse" button and find your .bat file. Click Next.
4.) Name it as "Shutdown" and check "Daily". Click Next.
5.) Enter the time you wish your computer to shutdown on every day. Click Next.
6.) Enter your user name and password into the appropriate boxes. Click Next.
7.) Click Finish.

_________________
A little project Bzsigy2
CivBase
CivBase
Adbot

Male Number of posts : 7336
Location : Etchisketchistan
Registration date : 2008-04-27

http://pathwaygames.forumotion.net/

Back to top Go down

A little project Empty Re: A little project

Post by Sponsored content


Sponsored content


Back to top Go down

Page 1 of 2 1, 2  Next

Back to top

- Similar topics

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