Quantcast
Results 1 to 6 of 6

Please tell me what is wrong with this command

  1. #1
    Nisko is offline Member
    Enjoys Windows 7 Forums
     
    Join Date
    Jun 2010
    Posts
    99

    Please tell me what is wrong with this command

    "C:\Program Files\Contig\contig.exe -a c:\pagefile.sys"
    .....where -a is a switch. This program (Contig) should perform a defrag on the page file.

    Reply With Quote Reply With Quote

  2. #2
    Elmer's Avatar
    Elmer is offline Tier 2 Moderator
    Resident eejit
     
    Join Date
    Mar 2010
    Posts
    1,946

    Re: Please tell me what is wrong with this command

    Not anywhere near an answer to your question but have you seen the GUI for Cintig.exe? Power Defragmenter Review - Power Defragmenter Download - Softpedia

    Nothing is foolproof to the talented fool.

    When attaching dmp files, PLEASE put them in a single zipped folder

    Reply With Quote Reply With Quote

  3. #3
    Trouble's Avatar
    Trouble is offline Administrator
    Noob Whisperer
     
    Join Date
    Nov 2009
    Posts
    5,922
    Blog Entries
    2

    Re: Please tell me what is wrong with this command

    I believe the -a switch is to analyze notto actually defrag.

    -a
    If you want to simply see how fragmented a file or files have become, use the -a switch to have Contig analyze fragmentation.

    SOURCE: Contig
    Yesterday was, Today is, but ahh Tomorrow...mystery, suspense and a promise of hope.


    Reply With Quote Reply With Quote

  4. #4
    Nisko is offline Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    Jun 2010
    Posts
    99

    Re: Please tell me what is wrong with this command

    Quote Originally Posted by Trouble View Post
    I believe the -a switch is to analyze notto actually defrag.

    -a
    If you want to simply see how fragmented a file or files have become, use the -a switch to have Contig analyze fragmentation.

    SOURCE: Contig
    That is what I'm trying to do. There is something wrong with the syntax of the command. I get an error message each time I try.

    Reply With Quote Reply With Quote

  5. #5
    Trouble's Avatar
    Trouble is offline Administrator
    Noob Whisperer
     
    Join Date
    Nov 2009
    Posts
    5,922
    Blog Entries
    2

    Re: Please tell me what is wrong with this command

    Can we assume you are seeing this error
    Code:
    C:\Users\johnsmith\Downloads\Contig>contig -a C:\pagefile.sys
    
    Contig v1.6 - Makes files contiguous
    Copyright (C) 1998-2010 Mark Russinovich
    Sysinternals - Windows Sysinternals: Documentation, downloads and additional resources
    
    The process cannot access the file because it is being used by another process.
    
    No files fragmented.
    I assume it means pretty much what is says and won't work against a live online pagefile
    because when I use it to analyze other files it seems to work OK.
    Code:
    C:\Users\johnsmith\Downloads\Contig>contig -a C:\windows\windowsupdate.log
    
    Contig v1.6 - Makes files contiguous
    Copyright (C) 1998-2010 Mark Russinovich
    Sysinternals - www.sysinternals.com
    
    C:\windows\WindowsUpdate.log is in 7 fragments
    
    Summary:
         Number of files processed   : 1
         Average fragmentation       : 7 frags/file
    Yesterday was, Today is, but ahh Tomorrow...mystery, suspense and a promise of hope.


    Reply With Quote Reply With Quote

  6. #6
    Nisko is offline Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    Jun 2010
    Posts
    99

    Re: Please tell me what is wrong with this command

    No, this is what I'm 'seeing':

    The command in the Target Box is not valid (sic). Sorry, please tell me how to insert a screen capture.

    Also, I didn't know you couldn't defrag a live page file - thanks.

    Reply With Quote Reply With Quote

Similar Threads

  1. Someone PLEASE tell me what this addon is!?!?
    By dasselin88 in forum Windows 7 Desktop Customization
    Replies: 5
    Last Post: 11-03-2012, 01:17 PM
  2. BSOD, what is wrong with my computer?
    By kawfee69 in forum Blue Screen of Death (BSOD)
    Replies: 7
    Last Post: 07-11-2011, 04:37 AM
  3. What is wrong with my drop down menus?
    By ddharper in forum Windows 7 Software
    Replies: 1
    Last Post: 03-08-2010, 04:31 AM
  4. What's wrong with my resolution???
    By DisposableSaint in forum Windows 7 Graphics
    Replies: 1
    Last Post: 11-04-2009, 10:30 PM
  5. Please tell me why my threads don't get posted?
    By woodall83 in forum Windows 7 Support
    Replies: 1
    Last Post: 08-28-2009, 03:16 AM

Visitors found this page by searching for:

contig defrag pagefile

how to use contig to defrag pagefile

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •