Welcome Guest ( Log In | Register )



3 Pages V  < 1 2 3 >  
Reply to this topicStart new topic
> Shut Down, Restart, Log Off XP Using A Batch File, Undocumented feature for XP
iGuest
post Nov 1 2007, 08:04 AM
Post #11


Newbie [ Level 1 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
lazlo
post Dec 4 2007, 02:41 PM
Post #12


Newbie [ Level 1 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
levimage
post Dec 5 2007, 01:56 AM
Post #13


Advanced Member
Group Icon

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. tongue.gif


Levimage
Go to the top of the page
 
+Quote Post
polarysekt
post Dec 5 2007, 04:43 AM
Post #14


Advanced Member
Group Icon

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???
Go to the top of the page
 
+Quote Post
lazlo
post Dec 5 2007, 09:16 AM
Post #15


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 3
Joined: 4-December 07
Member No.: 26,650



QUOTE(polarysekt @ Dec 4 2007, 09:43 PM) *
what about one of the scripting engines.... like VBScript???


Yes, whatever works, but how does it work ?

Some of us are no bertter than recording a macro and some tweaks thereafter, and to be honest, that's too much !
Go to the top of the page
 
+Quote Post
iGuest
post Dec 7 2007, 04:40 PM
Post #16


Newbie [ Level 1 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
isanetwork
post Dec 24 2007, 01:55 PM
Post #17


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 5
Joined: 24-December 07
Member No.: 27,101



QUOTE(NilsC @ Mar 24 2005, 04:55 AM) *
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. smile.gif

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 . cool.gif
now rename the file to "shutdown.txt.bat" .
a dilolog box apare and chek it yes.then run that file .
you find it intresting. cool.gif
Go to the top of the page
 
+Quote Post
iGuest
post Jan 20 2008, 10:47 PM
Post #18


Newbie [ Level 1 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
iGuest
post Feb 9 2008, 03:18 AM
Post #19


Newbie [ Level 1 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
J.C.
post Mar 18 2008, 11:38 PM
Post #20


Newbie [ Level 2 ]
Group Icon

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.
Go to the top of the page
 
+Quote Post

3 Pages V  < 1 2 3 >
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How To Save A Image In Pdf File And Download It?(10)
  2. Counter With Img In Flat File(2)
  3. Recover Tables From A MySQL .frm File(8)
  4. Text File Operations VB.NET(5)
  5. Restore Windows File And Folder Protection(5)
  6. Switch Network Settings With Batch Files(18)
  7. What Is Mkv? Need Help With This File Format?(7)
  8. Rapidshare(1)
  9. Uploading Image File Through JSP Code To Server(9)
  10. How To Use Psd File(14)
  11. Super File Recover(3)
  12. You Cannot Create A File Named Con(9)
  13. Get User Input From Vbscript For Batch Files(2)
  14. Google Suggest (beta)(10)
  15. How To Create Exe File In Java?(13)
  1. How Do You Use The cPanel File Manager?(14)
  2. Deleting A Corrupt File(26)
  3. Need Help Urgently (missing Or Corrupt Hal.dll File).(6)
  4. Is A Php File Searchable?(8)
  5. Problem With Move_uploaded_file()(5)
  6. Safari And Hosts File(8)
  7. How To Copy File & Folders From Linux To Windows?.(12)
  8. Linux Basic Command - For Storing Compilation Error To File(1)
  9. Need To Edit A Wav File [solved](1)
  10. Re-ordering Welcome Screen & Moving Heavily Fragmented File(1)
  11. Mysql And User File_priv(0)
  12. Video Feature?(1)
  13. Css File Size(7)


 



- Lo-Fi Version Time is now: 16th October 2008 - 01:38 AM