I'm trying to use Shell32 functions from my class. I have:
public void ZipFile()
{
var zipfile = "my.zip";
var zipFile = (Shell32.Folder)Shell.NameSpace(zipFilePath);
zipFile.CopyHere(targetFilePath, 4+16+512+1024+8192);
}
However I get an error on the call to Shell.NameSpace:
Error 1 An object reference is required for the non-static field, method, or property 'Shell32.IShellDispatch5.NameSpace(object)'
What should I do to resolve the error?