|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > PDMSystem > EnableDisableDBWAclServerWindowsExplorerSynchronization |
available from build: 20140715 |
This command can enable/disable ( passing 1/0 ) the client Windows Explorer file synchronization with the files managed by DBWAclServer. It is useful when it is known that a script will not use any client-side file operation (for example using the script runtime FileSystemObject or using native CAD APIs like "Open of a file" after a server-side file copy) for a sequence of file commands.
call DBWShell("EnableDisableDBWAclServerWindowsExplorerSynchronization enable")
enable |
0: disable |
Please note that in the following example the file management is implemented using ONLY the MechWorks PDM API - this allows the programmer to DISABLE the server/client synchronization since it is not necessary - the synchronization is ON by default
'.x64
Sub main()
DBWInit(TRUE)
...
DBWShell("EnableDisableDBWAclServerWindowsExplorerSynchronization 0")
DBWDeleteAFile myFilePath
if DBWFileExists(myFilePath) then
DBWMsgBox "The file " & myFilePath & " can't be deleted!"
end if
DBWShell("EnableDisableDBWAclServerWindowsExplorerSynchronization 1")
...
End Sub