|
-
May 5th, 2009, 11:32 PM
#1
Thread Starter
Fanatic Member
-
May 5th, 2009, 11:40 PM
#2
Re: Help with selecting directory
To get to your desktop folder and other special folders you can use properties of My.Computer.FileSystem.SpecialDirectories object. They will always give you the correct path no matter what system you're on. To save a file to a particular folder you simply specify the full file path including that folder.
When you're talking about anything random you talking about using an instance of the Random class to generate a random number. You can then use that number in whatever way you see fit. In your case you'd put your folder paths into an array or collection and then use the random number as an index to select one of the paths.
-
May 6th, 2009, 04:07 PM
#3
Thread Starter
Fanatic Member
Re: Help with selecting directory
That's it! Thanks a lot!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|