Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: Help With Path

  1. #1
    Join Date
    Dec 2005
    Posts
    46

    Grin Help With Path

    I want to install some Pictures.

    I want the pictures to be placed into the users MyDocuments\MyPictures\NewFolder

    I need help with the path

    1. to crate a new folder within MyDocuments\MyPictures\
    2. To place the picture into that newly created folder.

    This is the only thing i intend this app installer to do.

    Can anyone help?

  2. #2
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    I think this code should work:

    Code:
    -- Get the path to the current users 'My Pictures' folder
    sMyPicturesFolder = Shell.GetFolder(SHF_MYDOCUMENTS).."\\My Pictures";
    
    -- Create a new folder called 'My Folder' in the users 'My Pictures' folder
    Folder.Create(sMyPicturesFolder.."\\My Folder");
    
    -- Copy 'myfile.bmp' to the new folder
    File.Copy("AutoPlay\\Images\\myfile.bmp", sMyPicturesFolder.."\\My Folder\\myfile.bmp", true, true, false, true, nil);
    Last edited by Tek; 10-13-2006 at 03:15 PM.

  3. #3
    Join Date
    Dec 2005
    Posts
    46

    Help With Path

    Well I am using setup Factory 6.0/7.0

    My question is about setup factory

    Did it post in the wrong area my friend?

  4. #4
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    The code I posted will work in SF7 and AMS6 but not SF6.

Similar Threads

  1. How do I add to my PATH statement at install?
    By Tnygaard in forum Setup Factory 6.0
    Replies: 3
    Last Post: 05-27-2002, 01:38 AM
  2. Path problems in NT when executing file with spaces in path
    By tomarppe in forum Setup Factory 6.0
    Replies: 6
    Last Post: 03-21-2002, 02:01 PM
  3. PATH environment variable
    By RDodson in forum Setup Factory 6.0
    Replies: 4
    Last Post: 02-27-2002, 12:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts