hi there,
I have a problem where I want to process subdirectories. I have the following code but I cannpt seem to load the subdirectory info in my loop to get the sub directory name. I get the error "Error executing code: Wrong argument type for function."
Can someone please let me know where I am going wrong?
Many Thanks
Paulina
interopPermission = new InteropPermission(InteropKind::ClrInterop);
interopPermission.assert();
try
{
if (System.IO.Directory::Exists(filePath))
{
di = new System.IO.DirectoryInfo(filePath);
arrayType = System.Type::GetType("System.IO.DirectoryInfo");
diList = System.Array::CreateInstance(arrayType, 1);
diList = di.GetDirectories();
l = diList.get_Length();
info(strfmt('%1 subdirectories found in directory %2', l, filePath));
for(i=0; i < l; i++)
{
subDirectory = diList.getValue(i);
info(strfmt('Processing directory %1', subDirectorys.get_FullName()));
.... etc
subdirectorys = diList.GetValue(i);
*This post is locked for comments
I have the same question (0)