Computing.Net > Forums > Windows Vista > Vista batch files..

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Vista batch files..

Reply to Message Icon

Name: Stuart28
Date: November 29, 2007 at 10:22:22 Pacific
OS: Vista Business
CPU/Ram: Core2Duo/2GB RAM
Product: Custom build
Comment:

I'm looking to create a batch file under Vista but haven't had much experience with creating these under XP or Vista.

I want to be able to run a Verbose Defrag from the command prompt each time I start Vista, which should give a detailed response on how a partition/hard drive is looking.

The command I usually go with from the prompt is defrag.exe c: -v

How would I set this to run and display the output from a batch file?

Also, could anyone point me in the right direction on learning the basics of writing batch files?

Any help is greatly appreciated!

Many thanks,

Stuart



Sponsored Link
Ads by Google

Response Number 1
Name: sype
Date: November 29, 2007 at 10:48:18 Pacific
Reply:

here is a batch file that will work. Simple, does not put the .txt file anywhere, but here you go.

Defrag C: /v >> defragreport.txt

And the basics would be anything that has to do with Windows Shell Scripting. Also you can Google Windows Batch file, or something to that extent.


0

Response Number 2
Name: Stuart28
Date: November 29, 2007 at 11:30:48 Pacific
Reply:

Great - thanks sype!

Just what I was looking for.

Stuart


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Vista Forum Home


Sponsored links

Ads by Google


Results for: Vista batch files..

Creating a batch file in Vista? www.computing.net/answers/windows-vista/creating-a-batch-file-in-vista/273.html

batch files www.computing.net/answers/windows-vista/batch-files/5945.html

Batch file Problems www.computing.net/answers/windows-vista/batch-file-problems/782.html