FileSystem problem with UNC paths 
Author Message
 FileSystem problem with UNC paths

Dim filename As String = FileSystem.Dir(remotedir, FileAttribute.Normal)

This statement works with local directories, with UNC paths I get this:

"System.IO.IOException: Bad file name or number.
   at Microsoft.VisualBasic.CompilerServices.IOUtils.FindFirstFile(Assembly
assem, String PathName, FileAttributes Attributes)
   at Microsoft.VisualBasic.FileSystem.Dir(String Pathname, FileAttribute
Attributes)
   at blah blah blah..."

Er, what do I do?

Bob



Sun, 10 Jul 2005 13:18:48 GMT  
 FileSystem problem with UNC paths
It will work only if you have List Folders and other needed permissions on the
remotedir.
I tested it out on my machine and it worked fine. However, I have full
permissions on the remoteDir.

Hope this helps!
Bharat Patel
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.              



Mon, 11 Jul 2005 02:17:37 GMT  
 FileSystem problem with UNC paths
Everyone already has full control for the directory and its containing share
that I need to read :(

Even though the FileSystem object doesn't work with it, FileListBox does and
I'm resorting to using that now.

Bob



Quote:
> It will work only if you have List Folders and other needed permissions on
the
> remotedir.
> I tested it out on my machine and it worked fine. However, I have full
> permissions on the remoteDir.

> Hope this helps!
> Bharat Patel
> Microsoft, Visual Basic .NET

> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Please reply to newsgroups only. Thanks.



Mon, 11 Jul 2005 02:52:58 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Filesystem object UNC Path Error

2. Local path vs UNC Path

3. filesystem object and UNC?

4. Converting logical paths to UNC paths

5. Help converting UNC paths to physical paths.

6. Converting logical paths to UNC paths

7. How transform path into unc-path ?

8. How to convert local path to UNC-path?

9. How to convert local path to UNC-path?

10. turning a local path into a UNC path

11. How to convert path to UNC path?

12. Problem using UNC path to connect to Access 7.0 database

 

 
Powered by phpBB® Forum Software