Simple Archive Application?

Merner

New member
Joined
Jul 4, 2007
Messages
2
Programming Experience
Beginner
I am new to the development world (Network Admin by trade) and an looking to develop an app that will archive folders from one location to another based on a users selection.

I have taken a look at the 101 VB examples for VS 2005 and think the "working with the File System closely matches my requirement. except it does not allow the selection of a folder, only a file.

Process:

1. Allow user to select a folder from within a specific folder location only (m:\projects\xxxx\FOLDER)

2. impersonate an user ( using WindowsIdentity.Impersonate Method) to write the data to another location (m:\projects\xxxx\archive) because users will only have NTFS read access on these archive directories.

This Possible?
Sample Code would be great...Thanks

Mike
 
use a folderbrowserdialog.
start it at your chosen directory (initialdirectory)
then reject invalid paths or accept valid paths from dialog
can't help with the other problem though
 
I tried to use this control within a new Visual Studio VB Windows application, when draging the conrtol to the new form it does not place it on the form, but below the form.

Like I had mentioned I am not overly familliar with the fine details of the dev environment.
 
the FolderBrowserDialog is a dialog that you open from code and it shows a window to the user where they can select a folder for your application to work with

this means it doesn't actually show on your form, but you open it from code then use the SelectedFolder property to know which folder they selected.

I've never tried to do #2, so I don't know how to help ya there.
 
Back
Top