Click here to Skip to main content
16,017,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my problem i want to create a new folder at run time and geting images from that folder and after process images save into another folder.
here i think use create new directory concept helpfull
DirectoryInfo destinationDir = new DirectoryInfo("c:\\b");

like this
any example for this..
Posted
Updated 16-Aug-11 20:36pm
v2

1 solution

If you are creating folder at runtime, how can there be images in that?
Anyways, here is how you can create a directory at runtime
C#
IO.Directory.CreateDirectory("C:\\MyImages");

And this is how you can get all jpg images from that folder.
C#
DirectoryInfo di = new DirectoryInfo("C:\\MyImages");
FileInfo[] fi = di.GetFiles("*.jpg");

Try to work out your problem with this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900