PC Review


Reply
Thread Tools Rate Thread

How to access a local drive (including removable drive) in a terminal server session programmatically?

 
 
Bill Nguyen
Guest
Posts: n/a
 
      22nd May 2007
One of my apps (running in a terminal server session) needs to access a
local USB drive /fash card.
Is there a way to access local drives programmatically?

Thanks

Bill


 
Reply With Quote
 
 
 
 
Tony Wissler
Guest
Posts: n/a
 
      23rd May 2007
I don't have a code sample handy right here but yes, if your looking to read
or write to a file on removable drive, that shouldn't be a problem at all.
I read/write to files all the time.

Look into the FileSystemInfo, FileInfo, DirectoryInfo classes.

Also and more specifically,take a look at the DriveInfo class and the
DriveInfo.DriveType enumeration.

You can enumerate drives on a system with something along the lines of the
following:

Dim drives() As DriveInfo = DriveInfo.GetDrives()
Dim drive As DriveInfo
For Each drive In drives
Console.WriteLine("Drive: {0}", drive.Name)
Console.WriteLine("Type: {0}", drive.DriveType)
Next

This should give you a start.

Tony Wissler
(E-Mail Removed)_NoSpamMan!

"Bill Nguyen" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> One of my apps (running in a terminal server session) needs to access a
> local USB drive /fash card.
> Is there a way to access local drives programmatically?
>
> Thanks
>
> Bill
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal server: restricted each user to one session, but not in local wakeup Microsoft Windows 2000 Terminal Server Applications 1 9th Jul 2009 05:39 AM
removable disk drive has become a local drive =?Utf-8?B?TWFyaw==?= Windows XP Help 1 30th Apr 2004 10:44 PM
Local printer in terminal server session Fred Microsoft Windows 2000 Terminal Server Clients 3 29th Jan 2004 02:27 PM
USB Drive seen as removable drive instead of local drive thierry(point)benchetrit_news Windows XP Hardware 6 11th Jan 2004 04:36 PM
Local Drive Redirection mystery in Terminal Server 2003 Mitch Kim Microsoft Windows 2000 Terminal Server Clients 0 8th Oct 2003 10:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:41 PM.