Announcement

Collapse
No announcement yet.

User profile location (how to file copy or move)

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

  • Kasito
    replied
    Thanks friends. Colc, you solved my problem and appreciate.

    Leave a comment:


  • colc
    replied
    Hi Kasito,
    Here is a link to a Demo that will move your app from program files to user profile roaming.
    It first creates a folder then with button click moves to user's folder , please note on closing will delete folders from computer
    Page 2 contains how to use a dll file to show special folders and also there is a button to extract apz with full code

    Link: https://ln2.********/dl/b7f99ac60/jg...nmsg4-dzrka6n6
    Cheers

    Leave a comment:


  • usamakey
    replied
    ops syntax error

    that's right
    Code:
    sel = Dialog.FolderBrowse("Select a Folder:", _DesktopFolder);
    dest = Dialog.FolderBrowse("Select a folder:", _DesktopFolder.."\\destfolder");
    DLL.CallFunction("AutoPlay\\Docs\\FldrActn.dll", "MoveFolder", "\"" .. sel .. "\"" .. ",\"" .. dest .. "\",1,1", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL)

    Leave a comment:


  • usamakey
    replied
    you can just use Folder Action DLL (FldrActn.dll)

    Code:
    select = Dialog.FolderBrowse("Select a Folder:", _DesktopFolder);
    destination = Dialog.FolderBrowse("Please select a folder:", _FesktopFolder.."\\destfolder");
    DLL.CallFunction("AutoPlay\\Docs\\FldrActn.dll", "MoveFolder", "\"" .. sel .. "\"" .. ",\"" .. dest .. "\",1,1", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL)


    DLL Export Functions

    Click image for larger version

Name:	export.PNG
Views:	284
Size:	3.1 KB
ID:	305646

    Leave a comment:


  • Kasito
    started a topic User profile location (how to file copy or move)

    User profile location (how to file copy or move)

    Hello I'm having a challenge, My challenge is in AMS; I want programmatically move or copy a folder from app rootfolder to User profile location on client computer.
    C:\\Users\YourName\\file.dat

    Can this be possible with a variable like %UserProfile%

    Or is it possible in setup factory? Though, I would prefer this in AMS.

    I will appreciate any support with example if possible.

    Thanks.
Working...
X
😀
🥰
🤢
😎
😡
👍
👎