PC Review


Reply
Thread Tools Rate Thread

Getting DriveFormat from a UNC path

 
 
linearred
Guest
Posts: n/a
 
      16th Jul 2008
Hey folks,

Is there a way to get the file system format type from a UNC path? We have
an app that's using alternate data streams for storing thumbnails, and we'd
like to be able to check in advance for non-NTFS file systems (which don't
support ADS). "DriveInfo" has a "DriveFormat" property, but DriveInfo seems
to be limited to letter-mapped drives.

Thanks,
Bill


 
Reply With Quote
 
 
 
 
linearred
Guest
Posts: n/a
 
      16th Jul 2008
Well, on second look, getting the drive format may not matter. I mapped a
drive letter to a Samba file share UNC address on a Solaris box.
DriveInfo.DriveFormat on the mapped letter returned "NTFS", but it appears
that the volume still does not support alternate data streams. (In theory,
is an NTFS volume actually required to support ADS streams, or is that an
optional feature... or is this a Samba bug?)

Thanks.


"linearred" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hey folks,
>
> Is there a way to get the file system format type from a UNC path? We
> have an app that's using alternate data streams for storing thumbnails,
> and we'd like to be able to check in advance for non-NTFS file systems
> (which don't support ADS). "DriveInfo" has a "DriveFormat" property, but
> DriveInfo seems to be limited to letter-mapped drives.
>
> Thanks,
> Bill
>



 
Reply With Quote
 
linearred
Guest
Posts: n/a
 
      16th Jul 2008
Thanks for the tips, Pete.

FYI, alternate data streams do work on at least one other enterprise level
Windows network share I've tested in our network, so it doesn't seem to be a
Windows networking issue per se.

>
> My own guess is that you can't depend on a networked volume supporting
> NTFS-specific features over that connection, and in fact it may be that
> it's simply something that's completely unsupported on Windows networking,
> never mind Samba. I'm not even sure that using native Windows-to-Windows
> SMB networking, it would be supported (but then again, I'm not the expert
> you're looking for, so... ).
>
> Pete



 
Reply With Quote
 
linearred
Guest
Posts: n/a
 
      16th Jul 2008
Just to distinguish it from a desktop share. I don't kow what the company's
Windows file server farms are actually running on, or what the underlying
network connection actually is.

> Not that I would have any particular insight in this respect, but...when
> you write "enterprise level Windows network share", is that actually using
> SMB? Or perhaps some other file sharing implementation that supports
> ADS? If it's just using SMB (i.e. the built-in Windows networking) why do
> you describe it as "enterprise level"?
>
> Pete



 
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
doskey doesn't work; PATH only sets after first Java compile; then resets to old PATH joe Windows XP Help 4 14th May 2008 03:55 PM
how to judge whether a path is relative path or absolute path thinktwice Microsoft Windows 2000 CMD Promt 20 8th May 2008 12:06 AM
An exception occurred in the OnBeforeInstall event handler of <name> Access to the path <path> is denied. Andrzej Lipski Microsoft Dot NET 0 5th Oct 2007 05:24 PM
set path, change path - path grayed out John Smith Windows XP Help 1 12th Feb 2005 02:56 PM
set path, change path - path grayed out John Smith Windows XP General 1 12th Feb 2005 02:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:47 PM.