hi for every one
i want to save text file in specified bath without show the save window
i write code that save file but that code show save window :
- CommonDialog1.FileName = "invoices.txt"
-
CommonDialog1.ShowSave
-
Call FileCopy(App.Path & "\invoices.txt", CommonDialog1.FileName)
i want to save file in specified bath without show the save window.
The "save window you are seeing is nothing to do with your "save" to the text file. It's the
CommonDialog1 control which is prompting the user to select a file. That's what the common dialogue control is
for - to allow you to show common user dialogues such as a file chooser, colour chooser, font chooser and so on. To avoid this, just don't use it. Provide your file name some other way.
Oh, and by the way - the word is "path", not "bath".