Results 1 to 2 of 2

Thread: why doesnt this work ?

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    why doesnt this work ?

    Ok when i run this code from with VB , i.e compiled and run it, works fine, but when i build an exe and run it from there it just hangs. It opens cmd ok, but doesnt run defrag , as i said just hangs there. ?


    dim openfrag
    openfrag = Shell("cmd.exe /k defrag c:", vbMaximizedFocus)

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    Jmacp

    Are you attempting to run it on the development machine?

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