Announcement

Collapse
No announcement yet.

Global variable for appdata address

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Global variable for appdata address

    I'm trying to use the Zip.Extract command to place the files in the appdata folder, as shown in the examples:
    Code:
    Zip.Extract("AutoPlay\\Docs\\Ativadores\\Pro\\Pro.zip", {"*.*"}, _DesktopFolder.."Roaming\\Rizonesoft", true, true, "", ZIP_OVERWRITE_ALWAYS, nil);
    Code:
    Zip.Extract("AutoPlay\\Docs\\Ativadores\\Pro\\Pro.zip", {"*.*"}, _SourceDrive.."C:\\Users\\%HOMEPATH%\\AppData\\Roaming\\Rizonesoft", true, true, "", ZIP_OVERWRITE_ALWAYS, nil);
    Code:
    Zip.Extract("AutoPlay\\Docs\\Ativadores\\Pro\\Pro.zip", {"*.*"}, _SourceDrive.."C:\\Users\\%USERPROFILE%\\AppData\\Roaming\\Rizonesoft", true, true, "", ZIP_OVERWRITE_ALWAYS, nil);
    I tested these two commands that I found on this page https://www.indigorose.com/webhelp/a..._Variables.htm, although there were others, they didn't make sense for what I wanted, but even using only these two I didn't have an acceptable result.

  • #2
    You should really read the manual - Try this

    Code:
    zippath = Shell.GetFolder(SHF_APPLICATIONDATA);
    
    Zip.Extract("AutoPlay\\Docs\\Ativadores\\Pro\\Pro. zip", {"*.*"},zippath, true, true, "", ZIP_OVERWRITE_ALWAYS, nil);

    Comment


    • #3
      Originally posted by colc View Post
      You should really read the manual - Try this

      Code:
      zippath = Shell.GetFolder(SHF_APPLICATIONDATA);
      
      Zip.Extract("AutoPlay\\Docs\\Ativadores\\Pro\\Pro. zip", {"*.*"},zippath, true, true, "", ZIP_OVERWRITE_ALWAYS, nil);

      Thank you! It worked.

      Comment

      Working...
      X