Solved

Visual Studio Click Once Deployment

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

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

Suggested Solutions

Title # Comments Views Activity
vb.net 1 month apart 11 40
vb.net class 3 31
How to limit User Input 2 34
VB.NET Textbox input validation 4 66
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

696 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