|
-
Aug 21st, 2000, 05:02 PM
#1
Thread Starter
New Member
I am writing to an ini file using the win API function WritePrivateProfileString. If I try to delete the file or overwrite it after using the WritePrivateProfileString, nothing happens. Can anyone help me with this?? Here's the code I've written:
WritePrivateProfileString "Testing FSO", "Worked", "No", _
"C:\windows\desktop\joey.ini"
WritePrivateProfileString "Testing FSO", "Worked2", "No", _
"C:\windows\desktop\joey.ini"
Kill "C:\windows\desktop\joey.ini"
If the file joey.ini doesn't exist then WritePrivateProfileString creates it, but then the kill statement won't delete it. Even if the file exists already it won't delete it. The only instance where it was deleted was when those settings written by WritePrivateProfileString already existed. HELP!!!!???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|