save dialog question

daveofgv

Well-known member
Joined
Sep 17, 2008
Messages
218
Location
Dallas, TX
Programming Experience
1-3
Hello all,

If I have a program that I do not want users to save to the computer and/or want them to browse files within the computer -

is there anyway to have them save files (word, excel, notepad) to an external drive and not have the option of the c drive? Like a thumb drive

Thanks in advanced

daveofgv
 
Either verify the selected path of a SaveFileDialog with DriveInfo class and its DriveType property, or provide a custom 'save file' interface where you only lists the drive types you allow, to do this use the GetDrives method and inspect same DriveType property for each.
 
Thank you for your reply.

Would this also customize the savedialog when a word document or excel document is trying to save?

You can open word and excel from my program, however, the user can save their files.
 
If you mean controlling where user can save files from any application they may be using, then no, it is not possible.
 
Thanks JohnH.

I didn't thinks so, however, it never hurts to ask someone that knows for sure.

I appreciate your time to answer my question....

daveofgv
 
Back
Top