473,397 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

save file without show save window

36
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 :

Expand|Select|Wrap|Line Numbers
  1. CommonDialog1.FileName = "invoices.txt"
  2. CommonDialog1.ShowSave
  3.  
  4. Call FileCopy(App.Path & "\invoices.txt", CommonDialog1.FileName)
i want to save file in specified bath without show the save window .

thank you .
Mar 7 '07 #1
3 3474
Don't ask from user for destination path u can give ur self destination path.
but it is not good approach.
[ code]
Call FileCopy(App.Path & "\invoices.txt", strDestinationPath)
[/code]
Mar 7 '07 #2
hariharanmca
1,977 1GB
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 :

Expand|Select|Wrap|Line Numbers
  1. CommonDialog1.FileName = "invoices.txt"
  2. CommonDialog1.ShowSave
  3.  
  4. Call FileCopy(App.Path & "\invoices.txt", CommonDialog1.FileName)
i want to save file in specified bath without show the save window .

thank you .

You can use File System Object to solve your Problem
Mar 7 '07 #3
Killer42
8,435 Expert 8TB
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 :

Expand|Select|Wrap|Line Numbers
  1. CommonDialog1.FileName = "invoices.txt"
  2. CommonDialog1.ShowSave
  3. 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".
Mar 8 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Shakil Khan | last post by:
Hi there ... My question is about Meta Data which is automatically saved with files. For example,when an MS Office Documents is saved, it automaticaly save some extra information with the file...
4
by: Richard | last post by:
Hi I'm new to ASP/Web programming so any help would be appreciated... Situation: On my web page I would like to present a link {or button} that would allow the user to download a large file. ...
4
by: sunilj20 | last post by:
Hello, I have a requirement wherein, a user clicks on a file name in an ASP.NET web application, and the file should automatically be downloaded (Without showing the "Open", "Save As") in the...
4
by: Satya | last post by:
I am trying to display a PDF file (which I am being passed from a web service as a binary stream) in a browser, but I am being prompted to save the file instead. I don't want the user to be...
5
by: Jon Paal | last post by:
how can I bypass the open/save/cancel dialog box and have the document requested open directly in the application associated with the file type ?
6
by: Filips Benoit | last post by:
Dear All, All 3 codes, copied from internet, triggers error 429 : ActiveX component can't create object ! No compile error. I have the reference set to Adobe Acrobat 7.0 Type Library I do not...
7
by: dtbrown | last post by:
I am working on a project that will locally create XML files. I have an HTML form that uses the Dojo Toolkit and XSLT to create the XML object. Currently I put the XML into a textarea. The used must...
4
by: Kaustubh Budukh | last post by:
I am designing a VB.NET based website I have a hyperlink, upon clicking on it a "File Download" prompt opens which asks me whether I want to "Save" the file, "Open" But I want it to...
4
by: Ty | last post by:
Hello all, I am creating a web site with Visual Stuido 2008. I am trying to use a java script file to create a busybox for login from this page http://blogs.crsw.com/mark/articles/642.aspx. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.