Each time I make a change to a file, I want to copy it to the server. I can do it the first time, but then I get an error that the file is locked, or I don't have permissions, etc. I'm guessing I have to do something to "release" the external file after copying - anyone know how to do that? Here's the code...
PROCEDURE SaveListItemsFile()
sMyDirectory is string = "C:\Program Files\HF Server\BDD\MAFASW\"+gpsStudio+"\"
sFilestoCopy is string = sMyDirectory+"HFListItems.*"
sDestinationDirectory is string = "C:\Program Files\HF Server\BDD\MAFASW\"
IF fDirectoryExist(sMyDirectory) THEN
Info("The directory "+ sMyDirectory +" exists on the disk")
Info(sFilestoCopy,sDestinationDirectory)
sCopyResult is string = fCopyFile(sFilestoCopy,sDestinationDirectory)
IF sCopyResult = True THEN
Info("Copy Completed")
ELSE
Info("Copy Failed")
END
END
thanks!