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

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Vista batch files..

Reply to Message Icon

Original Message
Name: Stuart28
Date: November 29, 2007 at 10:22:22 Pacific
Subject: Vista batch files..
OS: Vista Business
CPU/Ram: Core2Duo/2GB RAM
Model/Manufacturer: 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


Report Offensive Message For Removal


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

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.


Report Offensive Follow Up For Removal

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

Great - thanks sype!

Just what I was looking for.

Stuart


Report Offensive Follow Up For Removal







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








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software