locked-files

How to copy a locked file like .pst using delphi xe3

徘徊边缘 提交于 2019-12-20 06:27:02
问题 I am struggling to find an answer to the following problem. Any and all help would be appreciated. I am using the following code to try and copy an outlook.pst file while outlook is open. And i cannot get it to succeed. It does not give an error, it just doesnt copy the file. copyfile('C:\Users\Administrator\Documents\Outlook Files\Outlook.pst','F:\Outlook.pst'); If you guys know how i will be able to copy a locked file like that please assist. I have tried and found that TFilestream also

Is there a way to handle locked file from command line and release it? [closed]

浪尽此生 提交于 2019-12-18 14:53:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Is there a way to detect locked files in specify folder and release them by command line? Something like this in pseudo-code: for file in folder do unlock file 回答1: Yes, this is possible using a free utility called Handle , by Mark Russinovich. It can be download here from Microsoft. This runs from the command

Is there a way to handle locked file from command line and release it? [closed]

怎甘沉沦 提交于 2019-12-18 14:53:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Is there a way to detect locked files in specify folder and release them by command line? Something like this in pseudo-code: for file in folder do unlock file 回答1: Yes, this is possible using a free utility called Handle , by Mark Russinovich. It can be download here from Microsoft. This runs from the command

Why does TextEdit open html files as locked?

六眼飞鱼酱① 提交于 2019-12-12 04:52:55
问题 I have an applescript that creates html files and uses textedit to open them: try tell application "Finder" to set save_folder to (target of window 1) as alias on error set save_folder to path to desktop end try set textFile to (choose file name with prompt "Enter file name:" default location save_folder default name "Comment.html") as text if textFile does not end with ".html" then set textFile to textFile & ".html" do shell script "touch " & quoted form of POSIX path of textFile tell

FileInputStream still can be read while source file deleted

人走茶凉 提交于 2019-12-11 18:49:55
问题 I have encountered a very strange problem in android: In my app, i will upload files from cache directory. If a user uses cleaner app like cleanmaster to clear my app's cache directory while my app uploading files, all files got deleted, but the uploading tasks don't stop at all and will complete successfully later without losing any data. Moreover, while these "no source file task" still uploading, i can not access the cache directory any more, e.g. if i want to create a new file in the

File is locked after HttpPostedFile SaveAs(LocationOnServer)

 ̄綄美尐妖づ 提交于 2019-12-11 01:54:45
问题 I have an aspx webpage that uses as handler to save uploaded files via swfupload I am saving the file on the server like this: HttpPostedFile uploadedFile = Request.Files["Filedata"]; uploadedFile.SaveAs(LocationOnServer); the problem is that after I save the file the file remain locked (by w3wp.exe) until I restart the IIS. Is there any way to release the file after save? Thanks 回答1: I have dealt with the same situation in the past. You need to run your application pool under a domain

How to copy a locked file like .pst using delphi xe3

大城市里の小女人 提交于 2019-12-02 11:23:54
I am struggling to find an answer to the following problem. Any and all help would be appreciated. I am using the following code to try and copy an outlook.pst file while outlook is open. And i cannot get it to succeed. It does not give an error, it just doesnt copy the file. copyfile('C:\Users\Administrator\Documents\Outlook Files\Outlook.pst','F:\Outlook.pst'); If you guys know how i will be able to copy a locked file like that please assist. I have tried and found that TFilestream also does not work. And those 2 are the only options i know off. any help would be greatly appreciated. Thank

File locked after sending it as attachment

走远了吗. 提交于 2019-11-28 10:57:06
I am sending a file as an attachment: // Create the file attachment for this e-mail message. Attachment data = new Attachment(filePath, MediaTypeNames.Application.Octet); // Add time stamp information for the file. ContentDisposition disposition = data.ContentDisposition; disposition.CreationDate = System.IO.File.GetCreationTime(filePath); disposition.ModificationDate = System.IO.File.GetLastWriteTime(filePath); disposition.ReadDate = System.IO.File.GetLastAccessTime(filePath); // Add the file attachment to this e-mail message. message.Attachments.Add(data); And then I want to move the file to

SMTP Send is locking up my files - c#

南楼画角 提交于 2019-11-27 14:58:33
I have a function thats sending messages ( a lot of them) and their attachments. It basically loops through a directory structure and creates emails from a file structure for example c:\emails\message01 \attachments c:\emails\message02 \attachments The creation of the messages takes place using .net c#, standard stuff. After all messages are created... I have another function that runs directly afterwards that copies the message folder to another location. Problem is - files are locked... Note: I'm not moving the files, just copying them.... Any suggestions on how to copy locked files, using c

File locked after sending it as attachment

匆匆过客 提交于 2019-11-27 03:55:02
问题 I am sending a file as an attachment: // Create the file attachment for this e-mail message. Attachment data = new Attachment(filePath, MediaTypeNames.Application.Octet); // Add time stamp information for the file. ContentDisposition disposition = data.ContentDisposition; disposition.CreationDate = System.IO.File.GetCreationTime(filePath); disposition.ModificationDate = System.IO.File.GetLastWriteTime(filePath); disposition.ReadDate = System.IO.File.GetLastAccessTime(filePath); // Add the