2
Answers

Refreshing directory content

abed akhi

abed akhi

12y
3.6k
1

Hi,

I am deleting some files from a directory with C# and then I am getting the contained files so if I don't refresh the content of the directory the deleted file will be added as a contained file so how can I refresh the content of the directory using C# it's not the refresh() method in fileinfo I've tried it, 

thanks.

Answers (2)
0
spgilmore

spgilmore

NA 591 0 20y
Can you post the REGASM command you issued? If using Visual Studio, it's easier to tell it to export a COM type library from the IDE. To do this, set REGISTER FOR COM INTEROP to TRUE in the project properties dialog, under Configuration Properties). Did you add a reference to the object in VB or did you use late binding? Can you post the code you used to instantiate it?