PDA

View Full Version : Help With Path


Lookinghawk
10-13-2006, 02:37 PM
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?

Tek
10-13-2006, 04:12 PM
I think this code should work:


-- 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);

Lookinghawk
10-13-2006, 04:49 PM
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?

Tek
10-15-2006, 10:56 AM
The code I posted will work in SF7 and AMS6 but not SF6.