?
Solved

Visual Studio Click Once Deployment

Posted on 2011-09-27
2
Medium Priority
?
259 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

765 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