hi
i am creating a application and i want to know the each and every file which is present under that one folder .i.e. how can i iterate through a root directory and get the each files visit at list once.
hi i am creating a application and i want to know the each and
Share
If you just need to list them all at once, you can just use the overload for GetFiles that includes the option.
Obviously, in a web app you wouldn’t likely have access to “c:\MyDir”, so you can replace that with a variable holding the results of a MapPath call like so: