Open files over network gives not what I'd expect

  • Thread starter Thread starter **Developer**
  • Start date Start date
D

**Developer**

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
 
Looks like you are actually pointing to your Desktop folder, not the server
share folder. Do Directory.GetFiles(\\MM\backup\") instead.
 
Siva M said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top