|
|
|
|
![]() ![]() |
Nov 1 2007, 08:04 AM
Post
#11
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
I would like to know how to create a batch file that shuts down the computer or it can be done through regedit
-vikas sinha |
|
|
|
Dec 4 2007, 02:41 PM
Post
#12
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 3 Joined: 4-December 07 Member No.: 26,650 |
Hello,
I did a Google search to find some batch codes to specifically and only Save/force a shut down of a specific Excel file name and re-open the same Excel workbook. Can someone help out please ? Excel will freeeze on some occasions and I have a On Error in VBA module, so when it does error, it needs to shutodown and re-open. I can take care of the macro when the workbook opens again, but not sure how a batch file can automatically do the shutdown and re-open task. Thanks. This post has been edited by lazlo: Dec 4 2007, 02:42 PM |
|
|
|
Dec 5 2007, 01:56 AM
Post
#13
|
|
|
Advanced Member Group: [HOSTED] Posts: 148 Joined: 1-October 07 From: United States Member No.: 25,237 |
Hey, I Got some questions for you guys cause I fix computers and I'm kinda of Lazy - but sometimes i have to do a stupid batch file for something like AIDA2/Everest, RealVNC, Norton Ghost, network logon/logoff, working with shares, backup up files, network commands, regedits, etc. I'm not the brightest guy nor am I geek - just another IT peon. Well here goes:
1) Does this work on XP Home or tablet/media center edition? 2) Is there something for W2k or Vista? 3) Can you shutdown everybody in the network - what are the setting that have to be setup on the other PC's - services, permissions, etc.? 4) I've tried created shorcuts which could be copied to clients with little success - is there a 3rd party program which can make shortcuts for different windows versions? 5) Is there a way to make the key shorcuts CTRL + ALT + ?? to a file.reg that can be added when needed and removed afterwards? 6) How about logoff current user, and take screenshots? 6) How about has anyone tried creating the batch files, installed them remotely via .reg files, and created scheduled tasks to implement them? Well I don't know where I'm getting at - just thinking out loud. But here is some homework for you. Let me know if you have any success. If I don't have anything to do this week I'll look into it. Levimage |
|
|
|
Dec 5 2007, 04:43 AM
Post
#14
|
|
|
Advanced Member Group: Members Posts: 128 Joined: 12-February 05 From: St. Louis, MO Member No.: 2,612 |
what about one of the scripting engines.... like VBScript???
|
|
|
|
Dec 5 2007, 09:16 AM
Post
#15
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 3 Joined: 4-December 07 Member No.: 26,650 |
|
|
|
|
Dec 7 2007, 04:40 PM
Post
#16
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
I need to create a batch file to force a shut down on some servers. Once the shutdown is run, then I need to ping for the server name until it comes up timed out or unreachable, then send me an email informing that this is complete. Anyone have any thoughts?
-crzyjim |
|
|
|
Dec 24 2007, 01:55 PM
Post
#17
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 5 Joined: 24-December 07 Member No.: 27,101 |
How to shutdown a XP Pro computer when you are connected using RDC (Remote Desktop Connection) using a batch file or RPC (Remote Procedure Command) This is useful if you can't get to the computer but have remote access to the computer via a network or the internet. First To show you what you will see at a command prompt (command.com) when you type: "shutdown /?" Without the " " on each end. CODE c:\>shutdown /? Usage: SHUTDOWN [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "c omment"] [-d up:xx:yy] No args Display this message (same as -?) -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) you can write them in a text file like "shutdown.txt" and then save it . now rename the file to "shutdown.txt.bat" . a dilolog box apare and chek it yes.then run that file . you find it intresting. |
|
|
|
Jan 20 2008, 10:47 PM
Post
#18
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
timed reboot batch file???
Shut Down, Restart, Log Off XP Using A Batch File I am needing a reboot batch file that will reboot the computer after say about 2 hours, I have gotten that far, but what I cant figure out is how to get the message box to pop up right before the comp shuts down instead of having stay up for the entire time that the batch file is set for. Is this possible??? Blaze -Blaze |
|
|
|
Feb 9 2008, 03:18 AM
Post
#19
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
Backup then shutdown .bat file?
Shut Down, Restart, Log Off XP Using A Batch File I'd like a quick and easy way to automatically save several files to the backup hard drive when shutting down the computer. About six months ago a columnist had the script for a .Bat file and I can't find it now. Thanks. -Flier |
|
|
|
Mar 18 2008, 11:38 PM
Post
#20
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 17 Joined: 18-March 08 From: Mississippi Member No.: 29,226 |
You can also play a hilarious prank with this.
>Right click on the Desktop >Choose New >Choose Shortcut >Type "shutdown.exe -s -t 60 -c "THIS COMPUTER HAS DETECTED A VIRUS!" (Without the quotes, 60 is the amount of time before the command initiates so it can be modified and the text in the quotes (the quotes around THIS COMPUTER HAD DETECTED A VIRUS are needed by the way) can be modified. >Once you are finished typing that, click ok >Right click the shortcut on the Desktop >Click Properties >Go to "Change Icon" >A message will appear, just click OK. >Scroll to the Internet Explorer icon. >Select it and click ok. >Click ok. >Now, if you delete the original Internet Explorer Icon, and change the name of your new shortcut to Internet Explorer, you can play a hilarious prank on someone by making them think their computer has a malicious virus! I've done it on my teachers. It's very funny. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 16th October 2008 - 01:38 AM |