Solved

Visual Studio Click Once Deployment

Posted on 2011-09-27
2
254 Views
Last Modified: 2012-05-12
I have a windows app project.  I writes a pdf and puts it into a folder on the user's desktop.  Currently I use a deployment project to do this.  I want to use clickonce, my question is how do I tell it to write a folder to the user's desktop?
0
Comment
Question by:bergertime
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 36713136
Add the following at the start of the application execution. If the folder does not exist, it will be created. If it does not exist, nothing will happen.
System.IO.Directory.CreateDirectory(System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\YourFolder")

Open in new window

0
 
LVL 2

Author Closing Comment

by:bergertime
ID: 36713382
Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now