Jump to content

FileSaveDialog()


 Share

Recommended Posts

by using FileSaveDialog with the option "Prompt To Overwrite if file exists",

I found out that the contents is appended into the file but not overwritten it.

I wonder if it is a bug or user has to do the checking on their own ?

I assume that with the feature "overwrites if file exists" would totally

write a new content into file.

Pls advise.

Link to comment
Share on other sites

by using FileSaveDialog with the option "Prompt To Overwrite if file exists",

I found out that the contents is appended into the file but not overwritten it.

I wonder if it is a bug or user has to do the checking on their own ?

I assume that with the feature "overwrites if file exists" would totally

write a new content into file.

Pls advise.

Can you post a small script that reproduce the behavior you are facing?

Thanks :D

Link to comment
Share on other sites

This is not a complete code. But when I use it to write the content using FileWriteLine() to be saved as a .reg file

it will append the data into the file, instead of overwritting.

FileSaveDialog ("Export Registry File", @MyDocumentsDir, "Registration File (*.reg)", 24, "Cash Drawer.reg")

sorry.... cos not providing complete coding. I will try to reproduce the coding and put it up here.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...