need your help again

Discussion in 'Software' started by red death68, Apr 28, 2011.

  1. red death68

    red death68 Command Sergeant Major

    ok so im still working on uninstaller (i know when the heck am i going to finish this project) anyways i decided to make a progress bar for the uninstaller but im running into a problem for it no matter what code i find when i add my extract.vbs it screws up by opening it over and over again and im forced to rush to task manager to kill around 20 processes heres the extraction code

    took some tweaking to get it set up right since im still very new to vbs let alone using cmd prompt cmds within vbs

    so basicly i want to add a progress bar to the extraction then from there i want to go to another vbs script to copy the newley exctracted files(I gotta write this script still i wanted to get the progress bar worked out first)
     
  2. GermanOne

    GermanOne Guest

    Because of the Run-Method you "shelled out" 7za.exe. From where you believe you could get the progress back to the VBS? OMHO this will never work.

    Regards
    GermanOne
     
  3. red death68

    red death68 Command Sergeant Major

    well it was an idea since i had the cmd windows hidden opriginaly because cmd windows make users unfamilier with them kind of uneasy

    is there a way to extract a 7z with just a vbs not a cmd line interface? or maybe by a dll simalier to unace.dll?
     
  4. GermanOne

    GermanOne Guest

    I don't think so. You have to call API functions to use 7z.exe, but VBS doesn't support API callings.

    The only file type you could easily extract by VBS is .zip.
    Code:
    strZipFullName="C:\TEST.zip"
    strExtractToFolder="C:\"
    
    Set oShellApp = CreateObject("Shell.Application")
    Set colFiles=oShellApp.NameSpace(strZipFullName).Items
    oShellApp.NameSpace(strExtractToFolder).CopyHere(colFiles)
    
    But honestly I have no idea how this could help to create a progress bar. You could use colFiles.Count to get the number of items in the .zip, but there is nothing that would return the number of currently unzipped items.:(

    Regards
    GermanOne
     
  5. red death68

    red death68 Command Sergeant Major

    dang i read something about figuring a percentage based on amount written to disc from the archive but i lost the article =(
     
  6. GermanOne

    GermanOne Guest

    No idea :confused
    Works for me on XP as well as on Win7.

    Regards
    GermanOne
     
  7. red death68

    red death68 Command Sergeant Major

    is it possible he forgot to change the path of the zip archive? and make sure to save as a .vbs people always make that mistake even the most experienced
     
  8. red death68

    red death68 Command Sergeant Major

    whats the full problem? please explain its hard to help iwht such short vague posts
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds