English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Alright I got really bored today and I just learned about batch files. They are pretty intersting with all the things they do.

I'm not really having a problem, but have been trying to find a remote shutdown script that will work but every one I have found just brings up command prompt and does the same prompt over and over which does nothing. So I just have to close it.

shutdown -r -f -t 00 -m \\computerName

This is the type of file i have been using but like I said it just explains what i typed when I put it in command prompt.

I have windows XP Home edition SP2.

Please Help!

And if you can find any documents online with examples of lots of batch files please let me know the url.

Thanks

2007-09-21 11:10:59 · 2 answers · asked by t_sug_duh 2 in Computers & Internet Programming & Design

2 answers

First, make absolutely sure that you're using the exact syntax required. If you're not, then this would explain why you're getting an explanation of the the shutdown command. For instance, do you need to put a colon ":" between the "-t" and the number of seconds? Like "-t:00" ?

Second, you can try an alternate shutdown command, psshutdown, that's available from sysinternals at http://www.microsoft.com/technet/sysinternals/Utilities/PsShutdown.mspx

Finally, one of the best places to find good information on batch files and any number of other scripts is "Rob van der Woude's Scripting Pages" at http://www.robvanderwoude.com/

2007-09-22 02:51:14 · answer #1 · answered by Kevin 7 · 3 1

in case you edit a application in notepad, then it desires the final suffix for the language (VBS or BAS for Pasic, PL for Perl etc.) if it fairly is a script, or if it fairly is a compiled language like C then it desires compiling. this is the type that makes .EXE. in case you place command-line instructions right into a report and want to run it, this is a batch report (.BAT)

2016-10-19 08:36:37 · answer #2 · answered by ? 4 · 0 0

fedest.com, questions and answers