Post by altair on Mar 19, 2015 3:52:25 GMT 10
Hi Folks,
I want my app to check a folder named META which is present inside about 60 folders in a folder called App. I want to check a file in each META folder for a command(which is different each time - per user's will), So I want to know how can I execute this on each folder.
Altair - The Flying One
|
|
Post by Nathan Lecompte on Mar 19, 2015 14:46:04 GMT 10
You could use the Loop statement and the For Each statement to do this, along with the System.IO functions/methods. Shouldn't be too hard...
|
|
Post by Prezence on Mar 19, 2015 21:14:09 GMT 10
And the IO Method Nathan said would be System.IO.Directory.GetDirectories(sourcepath)
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
|
|
Post by altair on Mar 20, 2015 5:31:04 GMT 10
Well A little modification,
In my case I should use GetDirectories(sourcepath, file, searchoption).
Altair - The Flying One
|
|