473,725 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

save file without show save window

36 New Member
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 3514
mabubakarpk
62 New Member
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.Pa th & "\invoices.txt" , strDestinationP ath)
[/code]
Mar 7 '07 #2
hariharanmca
1,977 Top Contributor
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 Recognized Expert Expert
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
1274
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 such as Author, Title, Description. Whenever we see the list of files in normal windows explorer, it will show you the meta data as well without even opening that file. Similarly when you Right-Click on a zip file to check its file properties , It...
4
5556
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. When the user clicks to start the download I would like to display the "Save As" dialog, allow the user to name a place to save the file, and then show the download progress bar while the file downloads Question: How do I make a windows "Save...
4
4509
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 local machine at a pre defined path (path defined in the registry), and launch the file in its associated application. I think this can be done through ActiveX Controls, but i dont know how to create ActiveX controls in .NET??
4
5626
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 prompted; I just want the PDF to be displayed. Here is the code: Byte binaryData; binarydata = GetDataHere(); Response.ContentType = "application/pdf"; Response.BinaryWrite(binaryData);
5
3533
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
20451
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 have the full version of Adobe Reader 7.0 ! The final goal is to print a PDF-file from access after selecting the file in a browser.
7
15505
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 then copy the XML and paste it into an XML file. I would like for this step to be skipped (i.e. have the XML file created/saved without copying and pasting.) My idea was to use JavaScript to open a new window, write the XML to that window,...
4
2514
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 directly open in Internet Explorer without showing the prompt....
4
3872
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 am using a master page senerio. The erro I'm getting is 'busyBox' is not a member of 'ASP.login2_aspx'
0
9401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9176
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.