ComputerForum.com ComputerForum.com  

Go Back   Computer Forum > Computer Software > Operating Systems

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-25-2007, 07:53 AM   #1
Megabyte Member
 
Jiffyman's Avatar
 
Join Date: Dec 2004
Location: USA
Age: 23
Posts: 713
Default Create .bat/.cmd to shutdown computer

Right now I'm trying to create a file that will shutdown my computer at a certain time from a remote location. I tried to make a file, but am not quite sure on how to. This is what I wrote in both .cmd and .bat files

Shutdown -s -m \\192.168.2.X

Then I just saved the file as a .cmd or .bat.,but it didn't work. Can someone please give a hint at what I am doing wrong?
__________________
Mother board: Gigabyte S-series GA-MA69GM-S2H
Additional Specs Down There:
http://www.gigabyte.co.nz/Products/M...ProductID=2579
Processor: AMD A64 X2 4200+ Dual-Core
RAM: 4 gig DDR2 800mhz
OS: Win Vista 32bit / Anything VMware can run
Jiffyman is offline   Reply With Quote
Sponsored Links
Old 06-25-2007, 08:41 AM   #2
Megabyte Member
 
Jiffyman's Avatar
 
Join Date: Dec 2004
Location: USA
Age: 23
Posts: 713
Default

I've also tried the command like this.

@echo off
shutdown -s -m \\192.168.2.X

It still doesn't work. Quite frankly I'm not even sure if it is possible to create a .cmd/.bat file that will do this. Is it possible?

O.k. I got it to work, but cannot do a network shutdown. This is how I did it.

"shutdown.exe -f -s" Without quotes. Then I saved it as a .bat file. Is it possible to do a network shutdwon with a bat file?
__________________
Mother board: Gigabyte S-series GA-MA69GM-S2H
Additional Specs Down There:
http://www.gigabyte.co.nz/Products/M...ProductID=2579
Processor: AMD A64 X2 4200+ Dual-Core
RAM: 4 gig DDR2 800mhz
OS: Win Vista 32bit / Anything VMware can run

Last edited by Jiffyman; 06-26-2007 at 12:32 AM.
Jiffyman is offline   Reply With Quote
Old 06-26-2007, 03:48 AM   #3
Kilobyte Member
 
Viking's Avatar
 
Join Date: Feb 2006
Location: east coast
Posts: 398
Default

do you even get the shutdown dialog box ?

did you try shutdown /? to see what they had listed (help file )?

this might be the same

http://www.computerhope.com/shutdown.htm
Viking is offline   Reply With Quote
Old 06-26-2007, 07:09 AM   #4
Petabyte Member
 
patrickv's Avatar
 
Join Date: Jul 2006
Location: In a MacBook Pro
Posts: 6,464
Talking

Quote:
Originally Posted by Viking View Post
do you even get the shutdown dialog box ?

did you try shutdown /? to see what they had listed (help file )?

this might be the same

http://www.computerhope.com/shutdown.htm
nice.. i will try it on some of my friends pc...lol
just kidding
__________________
I am just a guy with a computer!!

My Portfolio
patrickv is offline   Reply With Quote
Old 06-26-2007, 07:19 AM   #5
VIP Member
 
Trizoy's Avatar
 
Join Date: Apr 2005
Location: Mountain View, Ca
Posts: 4,698
Default

I dont know if you can send a remote shutdown message... You might be able to run a file from a remote computer.
__________________
01100110 01100001 01110010 01110100
Trizoy is offline   Reply With Quote
Old 06-26-2007, 09:22 AM   #6
Megabyte Member
 
Jiffyman's Avatar
 
Join Date: Dec 2004
Location: USA
Age: 23
Posts: 713
Default

Quote:
Originally Posted by Viking View Post
do you even get the shutdown dialog box ?

did you try shutdown /? to see what they had listed (help file )?

this might be the same

http://www.computerhope.com/shutdown.htm
Yeah I get the shutdown dialog box, but not with network shutdowns. I've already set it as a task that runs at a certain time, but it's still kinda sketchy and that why I wan't it to run from a remote computer. We've been having problems wit my lil bro staying on the computer all night so I set him up on a domain account and set logon hours the only problem is, is that my server doesn't log him off after his hours are up. So I'm trying to set this up to counter-act the problem. If anyone has any Ideas on how I could do this without a script that runs when his hours are up that would be great.

Dur no wonder why it was sketchy it wasn't set so users could run the task automatically. Anyways thanks for the help. If anyone can tell me how to do it remotly that would be great.
__________________
Mother board: Gigabyte S-series GA-MA69GM-S2H
Additional Specs Down There:
http://www.gigabyte.co.nz/Products/M...ProductID=2579
Processor: AMD A64 X2 4200+ Dual-Core
RAM: 4 gig DDR2 800mhz
OS: Win Vista 32bit / Anything VMware can run

Last edited by Jiffyman; 06-26-2007 at 09:44 AM.
Jiffyman is offline   Reply With Quote

Reply

Bookmarks

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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer Problem... Need Help From Many People... pslee Desktop Computers 6 03-31-2007 07:03 AM
New (Used) Computer Blues halmotors Video Cards and Monitors 0 02-21-2006 10:25 PM
im lookin 2 mak a powerful computer rezon Desktop Computers 7 08-24-2004 08:16 PM


All times are GMT +1. The time now is 02:07 AM.


Powered by: vBulletin Version 3.8.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2002-2014 Computer Forum