Gillboss Posted April 25, 2008 Posted April 25, 2008 i have bot that write on some file.. but when i want send it to email, its cant because "the file using by other process". so i have idea, before its send the file, to save and close the file and then send the file. how do that?
flip209 Posted April 25, 2008 Posted April 25, 2008 You, write a script that closes the file and saves the file... " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln
Gillboss Posted April 25, 2008 Author Posted April 25, 2008 this good? FileSaveDialog("C:\Program Files\asd") FileClose("C:\Program Files\asd")
flip209 Posted April 25, 2008 Posted April 25, 2008 Do you have a file handle like: $file = fileopen("c:\test.txt") " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln
Gillboss Posted April 25, 2008 Author Posted April 25, 2008 i have this..: $file = FileOpen(@ProgramFilesDir & "\" & "asd" , 1)
flip209 Posted April 25, 2008 Posted April 25, 2008 Then all you have to do is: fileclose($file) And you should be good " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln
Gillboss Posted April 25, 2008 Author Posted April 25, 2008 (edited) LOVE YOU ! edit: how delete it? FileDelete($file) ?? lol Edited April 25, 2008 by Gillboss
Swift Posted April 25, 2008 Posted April 25, 2008 (edited) Yes. It's Not A Puzzle. Edited April 25, 2008 by Swift
flip209 Posted April 25, 2008 Posted April 25, 2008 I think Gillboss may be getting it????? " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now