By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,285 Members | 1,647 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,285 IT Pros & Developers. It's quick & easy.

Open files over network gives not what I'd expect

P: n/a
I have a folder on my Desktop that has the following properties:

Type: Folder
Target: \\MM\backup
Comment: \\MM\\Backup
When I execute:
Directory.GetFiles(NewDirectory & "\")

where NewDirectory is the full path to the folder

I get two files:

Desktop.ini and target.lnk

But when I open the folder there are many files in it.

Does this make sense to anyone?

Thanks



Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Looks like you are actually pointing to your Desktop folder, not the server
share folder. Do Directory.GetFiles(\\MM\backup\") instead.

"**Developer**" wrote:
I have a folder on my Desktop that has the following properties:

Type: Folder
Target: \\MM\backup
Comment: \\MM\\Backup
When I execute:
Directory.GetFiles(NewDirectory & "\")

where NewDirectory is the full path to the folder

I get two files:

Desktop.ini and target.lnk

But when I open the folder there are many files in it.

Does this make sense to anyone?

Thanks



Nov 21 '05 #2

P: n/a


"Siva M" <sh******@online.excite.com> wrote in message
news:02**********************************@microsof t.com...
Looks like you are actually pointing to your Desktop folder, not the
server The desktop has many more than two files in it so I don't think that's it

share folder. Do Directory.GetFiles(\\MM\backup\") instead.
I can't do this without much changing.
As the program is set up it developes the full path:
C:\Documents and Settings\Joe\Desktop\backup

The folder, backup, is a copy of a folder in MyNetworkPlaces

Thanks for the reply

PS
I should be able to open the shared directory with GetFiles?

What are the files Desktop.ini and target.lnk used for?

"**Developer**" wrote:
I have a folder on my Desktop that has the following properties:

Type: Folder
Target: \\MM\backup
Comment: \\MM\\Backup
When I execute:
Directory.GetFiles(NewDirectory & "\")

where NewDirectory is the full path to the folder

I get two files:

Desktop.ini and target.lnk

But when I open the folder there are many files in it.

Does this make sense to anyone?

Thanks



Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.