folder create action, path chosen by user?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • atman
    Forum Member
    • Jul 2005
    • 1

    folder create action, path chosen by user?

    Hi,
    i'd like to copy files to a directory chosen/created by user.
    how to construct Folder.Create action that'd allow user to choose path?
    any help would be greatly appreciated,
    a.t.
  • markstaylor
    Indigo Rose Customer
    • Oct 2003
    • 296

    #2
    i'd like to copy files to a directory chosen/created by user.
    how to construct Folder.Create action that'd allow user to choose path?
    There are a couple of ways, one use the Dialog.Input to get the path from the user and the add the folder name to the string.
    newFolder = "Copied Files";
    user_Path = Dialog.Input(<your code>);
    new_Path = user_Path .."\\"..newFolder;

    Then you can use the Folder.Create to create the new folder in the path.
    you may want to use Folder.DoesExist to test if the folder exists on the users machine.
    Then use the File.Copy action to copy the files using the new_Path string as the destination.
    SELECT * FROM Users WHERE IQ > 0;
    o rows Returned

    Comment

    Working...
    X