ExamNotes.net  -  IT certification portal

ForumsCertResearchTop sitesNewslettersFree email
HomeRegister
Exams Notes
Practice exams
Exam games
Questions by email
Online training
Training videos
College degrees
Boot camps
Book store
Links directory
Tell a friend
For webmasters

CompTIA Exam Vouchers
Save money on CompTIA exams
Question of the day
Sign up to receive
interactive practice questions
for MCSE, CompTIA
Cisco and other exams
TestKing
Get MCSE, MCSD, CCNA, CCNP,A+, N+ and many more

* ExamSheets *
Guide for Success!
Actual Questions & Answers
MCSE, MCSD, A+ ,CCNA, CCNP
Oracle 8i, Oracle 9i

Online practice tests

Certification sites

Online university

Online college

Online education

Distance learning

Software forum

Server administration forum

Programming resources






This is interesting: Free IT Magazines | Databases help forum



General discussions > General Discussion > batch file

Show a Printable Version
Email This Page to Someone!
Receive updates to this thread






Author batch file
eric1971
Senior Member
M




Registered: Jun 2001
Location: Virginia Beach
Country: United States
State:
Certifications: MCSA, CCNA, A+
Working on: MCSE

Total Posts: 232
Question batch file

On a Win 95 machine I'm trying to create a batch file that will automatically defrag the c: drive. The problem is that a window pops up when the disk is not heavily fragmented and says "you do not need to run defrag now, if you want to anyway click on start. I want to force it to run every time without user interaction. Any ideas?

Report this post to a moderator

Old Post 03-22-02 09:02 PM
eric1971 is offline Click Here to See the Profile for eric1971 Click here to Send eric1971 a Private Message Add eric1971 to your buddy list Find more posts by eric1971 Reply w/Quote Edit/Delete Message IP: Logged
TW2001
Senior Member




Registered: Mar 2001
Location:
Country: USA
State:
Certifications: A+,MCP
Working on: BS CompSci

Total Posts: 1413

This going back..
Try this switch

/NOPROMPT

Report this post to a moderator

Old Post 03-22-02 09:25 PM
TW2001 is offline Click Here to See the Profile for TW2001 Click here to Send TW2001 a Private Message Add TW2001 to your buddy list Find more posts by TW2001 Reply w/Quote Edit/Delete Message IP: Logged
wbafrank
Moderator
M




Registered: Nov 2001
Location:
Country: Great Britain (UK)
State:
Certifications: MCP, MCSA, MCSE, MCSD, MCDBA, A+, CCNA, i-Net+, M CIW SD, CIW P, CIW Associate
Working on: CCNP (2/4)

Total Posts: 3787
Thumbs up Further info .............

Right-click the Start button and choose Open or Explore. Locate the Defrag Shortcut, which is in your Windows/Start Menu/Programs/Accessories/System Tools folder. (To make a shortcut for your desktop, right-click the Defrag icon, drag it to the desktop, and choose either Copy Here or Create Shortcut(s) Here.) Press Alt+Enter to open the Properties screen, click the Shortcut tab, then click at the end of the command line in the Target box. Then add the appropriate command switches (separated by spaces) to make Defrag perform as you like. Switches are as follows: For scanning a particular drive, type its letter followed by a colon (A:, C:,. etc.). For scanning all (non-networked) drives, don't type any drive letters, just type /ALL. To have Defrag only defragment files without consolidating free space on your hard drive, type /U. To consolidate free space without file degragmentation, type /Q. To do both, type /F. (You can't use more than one of these three switches at a time.) For Defrag to start and stop without your input, type /NOPROMPT. To have Defrag display the disk map that symbolizes the defragging process, type /DETAILED. Otherwise you'll get the small Defrag window. Your command line might look something like this: C:\WINDOWS\DEFRAG.EXE /ALL /F /NOPROMPT , to make Defrag defrag and consolidate free space on all local hard drives, and automatically exit when finished.

__________________
One Exam leads to another! Where will it ever end?

Report this post to a moderator

Old Post 03-22-02 09:36 PM
wbafrank is offline Click Here to See the Profile for wbafrank Click here to Send wbafrank a Private Message Add wbafrank to your buddy list Find more posts by wbafrank Reply w/Quote Edit/Delete Message IP: Logged
eric1971
Senior Member
M




Registered: Jun 2001
Location: Virginia Beach
Country: United States
State:
Certifications: MCSA, CCNA, A+
Working on: MCSE

Total Posts: 232

Thanks for the help guys.

Report this post to a moderator

Old Post 03-22-02 10:15 PM
eric1971 is offline Click Here to See the Profile for eric1971 Click here to Send eric1971 a Private Message Add eric1971 to your buddy list Find more posts by eric1971 Reply w/Quote Edit/Delete Message IP: Logged
All times are GMT.
Post new thread   Post reply

Featured site: MCSE, MCSD, CompTIA, CCNA training videos



Forum Jump:
Rate This Thread:
Forum Rules:
Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is ON.
 

ExamNotes forum archive


Powered by: vBulletin 2.2.8
Copyright ©2000, Jelsoft Enterprises Limited.

  Free Braindumps | mcse braindumps