Results 1 to 7 of 7

Thread: help in using windows tools

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    Brussels
    Posts
    104

    help in using windows tools

    Hi all,

    I am developing an application that runs the window tools like Defragmentation. how can i run the defragmentation. i tried the following code, but i was not able to make it work, i am getting an error "File not found".

    Code:
    private sub cmdDfrg_Click()
    
    dim val
    
    val=Shell ("defrg.msc",1)
    
    end sub.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Shouldn't that be defrag.exe? MSC is just a console that opens up.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    Brussels
    Posts
    104
    Yes, i just need to open the console.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    DFRG.msc

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    Brussels
    Posts
    104
    it did not work.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    Brussels
    Posts
    104

    Resolved help in using windows tools --Solved

    i solved the problem i used batch file. it works

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Add [Resolved]

Posting Permissions

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



Click Here to Expand Forum to Full Width