1.

Solve : defrag?

Answer»

how do i make a batch file that will open defrag, start it, and shutdown after it Quote

try contacting customer support.

The above is your response to a general question in another THREAD.

Now that you've asked your general question here, I wonder if you have tried to write any of the code yourself? Quote from: computerperson#1 on May 21, 2009, 03:18:13 PM
how do i make a batch file that will open defrag, start it, and shutdown after it

You open a text editor, type the lines of code, then save the file.
what are the lines of code Why to people think Command Prompt can do all these magical things?Quote from: computerperson#1 on May 22, 2009, 05:29:32 AM
what are the lines of code

You need to "learn" how to write them. That is your task.
I cant say the only reason why I attempt to do it is so that I can make things easier. IE if I am working on another machine and want a sepfic series of things to happen and dont want to sit in that room and work on whatever else.Okay......

Anyways, if you're looking for a way to start programs automatically at different times, I suggest a program called Kana Reminder.
http://www.snapfiles.com/reviews/Kana_Reminder/kanareminder.html Learn it like I had too, call ms paint and go from there and ask questions after learning dos.Quote from: squall_01 on May 22, 2009, 03:52:43 PM
Learn it like I had too, call ms paint and go from there and ask questions after learning dos.

Junis, is that you?
so defrag. just defrag? ok
Code: [SELECT]L:\>defrag /?
Usage:
defrag <volume> [-a] [-f] [-v] [-?]
volume drive letter or mount point (d: or d:\vol\mountpoint)
-a Analyze only
-f Force DEFRAGMENTATION even if free space is low
-v Verbose output
-? Display this help text

shutdown:
Code: [Select]L:\>shutdown /?
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-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)
Finished Product:
Code: [Select]Defrag %homedrive%
shutdown -s -f -t 00


Discussion

No Comment Found