Home All Groups Group Topic Archive Search About

Pass UNC Path to Dir command : visual basic 6.0

Author
13 May 2005 8:28 PM
Venugopal Vemuri
Hi,
   When I pass a UNC path to DIr command it errors out.  Is there a way to
use UNC path with Dir command?  An early reply would be appreciated.
Regards,
Venugopal

Author
13 May 2005 8:51 PM
Bob Butler
"Venugopal Vemuri" <VenugopalVem***@discussions.microsoft.com> wrote in
message news:FECF8654-31A7-4B20-8C82-1349FD015D73@microsoft.com
> Hi,
>    When I pass a UNC path to DIr command it errors out.  Is there a
> way to use UNC path with Dir command?  An early reply would be
> appreciated. Regards,

Works fien for me; do you have access rights to the UNC path?


--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
13 May 2005 9:29 PM
Dale
Hope you don't mind if I jump in here for a qiuck newbie question.

Just what does the ?acronym? UNC stand for?  Or is it an acronym?

Dale


Show quote
"Venugopal Vemuri" <VenugopalVem***@discussions.microsoft.com> wrote in
message news:FECF8654-31A7-4B20-8C82-1349FD015D73@microsoft.com...
> Hi,
>   When I pass a UNC path to DIr command it errors out.  Is there a way to
> use UNC path with Dir command?  An early reply would be appreciated.
> Regards,
> Venugopal
Author
13 May 2005 10:55 PM
MikeD
"Dale" <D-Man> wrote in message news:ONSJAMAWFHA.584@TK2MSFTNGP15.phx.gbl...
> Hope you don't mind if I jump in here for a qiuck newbie question.
>
> Just what does the ?acronym? UNC stand for?  Or is it an acronym?

It stands for "Universal Naming Convention". In a nutshell, it's a format
for specifying a path on a networked PC (but strictly speaking, it's not
required that the PC be part of a network, but there are few (if any)
reasons to use UNC otherwise). Generally, it begins with 2
backslashes followed by the server name, a single backslash, then the shared
folder name and another single backslash, and then any
directories/subdirectories of that shared folder, and then possibly a file
name.  IOW, it might look something like this:

\\myserver\mysharedfolder\dir1\dir2\filename.ext

(don't click on that. OE automatically creates a link for a UNC path)



--
Mike
Microsoft MVP Visual Basic
Author
14 May 2005 3:06 AM
JaleDones
Mike

Duh,

I knew that.

I never equated the use of that term with the actual path.

I learned something today.

I asked the question because of a small program I wrote which errs once in a
while.  It does nothing on the network other than try to use a network drive
via shell/dos prompt.  The error usually happens in the afternoon.  I
figured it was probably a busy time for the server and didn't want to deal
with lil ole me.

Just typing out loud.......



Show quote
"MikeD" <nob***@nowhere.edu> wrote in message
news:OUz1U7AWFHA.584@TK2MSFTNGP15.phx.gbl...
>
> "Dale" <D-Man> wrote in message
> news:ONSJAMAWFHA.584@TK2MSFTNGP15.phx.gbl...
>> Hope you don't mind if I jump in here for a qiuck newbie question.
>>
>> Just what does the ?acronym? UNC stand for?  Or is it an acronym?
>
> It stands for "Universal Naming Convention". In a nutshell, it's a format
> for specifying a path on a networked PC (but strictly speaking, it's not
> required that the PC be part of a network, but there are few (if any)
> reasons to use UNC otherwise). Generally, it begins with 2
> backslashes followed by the server name, a single backslash, then the
> shared
> folder name and another single backslash, and then any
> directories/subdirectories of that shared folder, and then possibly a file
> name.  IOW, it might look something like this:
>
> \\myserver\mysharedfolder\dir1\dir2\filename.ext
>
> (don't click on that. OE automatically creates a link for a UNC path)
>
>
>
> --
> Mike
> Microsoft MVP Visual Basic
>
>

AddThis Social Bookmark Button