DSOfile X file on server
DSOfile X file on server
(OP)
I'm now having a "little" problem. DSOfile does not work properly with files on server.
I run the macro locally (w2k SP2 with DSOfile installed) and the server (NT4, DSOfile not installed) as the file saved.
The result is: the file as no properties.
So the macro is mapping correctly the file, but it can't read the properties. If I make a copy of the same file to my local disk, the macro's result is correct (the file as properties after all).
Thanks for the help
I run the macro locally (w2k SP2 with DSOfile installed) and the server (NT4, DSOfile not installed) as the file saved.
The result is: the file as no properties.
So the macro is mapping correctly the file, but it can't read the properties. If I make a copy of the same file to my local disk, the macro's result is correct (the file as properties after all).
Thanks for the help






RE: DSOfile X file on server
If you use the NT4 box and right click on the file, do you get the "Custom" tab when you click "Properties"?
If you don't then either NT4 doesn't do Custom Properties or the OS is making those files Read-Only...
I would try it, but I don't have an NT4 box anymore. I only got 2000 and XP
Let me know
Mr. Pickles
RE: DSOfile X file on server
RE: DSOfile X file on server
Post me your code for "pushing" the properties. I use DSOFile.dll to work with files on our server (through the network) every day.
Or, can you check the file from your code to report if it is "Read-Only"?
Mr. Pickles
RE: DSOfile X file on server
I'VE GOT IT!
After your message I was really curious about what I might be doing wrong and I found a simple error (isn't it allways like this?).
My code was something like this:
....
workDir = InputBox("working dir")
....
ChDir (workDir)
....
FichDir = Dir(workDir)
....
Set oDocProp = oFilePropReader.GetDocumentProperties_
FichDir)
....
Then I thought that maybe FichDir needed to have the full path. So, before the Set oDocProp line, I put the following:
FichDir = workDir & FichDir
And voilá! It's working.
Thanks
RE: DSOfile X file on server
Set oDocProp = oFilePropReader.GetDocumentProperties(FichDir)