Solved

Visual Studio Click Once Deployment

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

773 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