473,396 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Open files over network gives not what I'd expect

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
2 1332
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


"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Lonnie Princehouse | last post by:
In short: Is there any way to run Python WITHOUT trying to create .pyc files (or ..pyo) or to have Python not attempt to import the .pyc files it finds? Reason: We have a site-specific...
9
by: Tom Weston | last post by:
Help I have 4 databases containing different data relating to safety, not written by me. It is not possible to merge the databases into one large data base. I would like to create a user interface...
29
by: Tola | last post by:
In my case of study, my teacher gave me a project, after I analysed the problem I found that I had to used open the file on the other machine? Please help? Thank you in advance. Tola CHROUK
2
by: Raterus | last post by:
Hi, I'm after this setup, and I'm just wondering if this is even feasible. I'd like to store my asp.net project remotely, on a network drive (all the project files, everything), But I want to be...
6
by: Daniel | last post by:
Hi all, Can i open and edit the excel sheet on web page after downloading? After editing, i close the web page and the excel file auto upload to the server. Is it possible? I really struggling...
2
by: Jerad Rose | last post by:
I have a fairly simple C# console app which copies files from a network folder to a local folder. When the app resides on my local C: drive, it runs just fine. However, when the app resides on a...
5
by: Bob | last post by:
Hi, I have some very simple code that I have been using for quite a while that uses a streamwriter to write to a network file. I have never had any problems with it. I recently updated Visual...
9
by: Bruno GUERPILLON | last post by:
Hi, I'd like, in a WIN32 environment, list all open files. Anyone got a clue how to do this ? Regards, Bruno.
0
by: itshibu | last post by:
I tried to write a program that can open files from the server. But the shared folder in the Win2003 server is password protected. i tried the following code ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.