Solved

Visual Studio Click Once Deployment

Posted on 2011-09-27
2
253 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

19 Experts available now in Live!

Get 1:1 Help Now