473,785 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.GetFi les(NewDirector y & "\")

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 1346
Looks like you are actually pointing to your Desktop folder, not the server
share folder. Do Directory.GetFi les(\\MM\backup \") instead.

"**Develope r**" 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.GetFi les(NewDirector y & "\")

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******@onlin e.excite.com> wrote in message
news:02******** *************** ***********@mic rosoft.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.GetFi les(\\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\De sktop\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?

"**Develope r**" 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.GetFi les(NewDirector y & "\")

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
8644
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 package installed on a network drive. When anyone with write access imports this package, the network drive gets spammed with .pyc files.
9
2101
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 with 4 buttons, one for each database. The aim would be for the user to click on a button and the related database opens for use. When the database is closed the user interface with the buttons on returns. Can anybody offer a method of achieving...
29
3408
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
1695
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 able to run the project on my local computer, off my local IIS server/asp.net configuration. Here is what I've done, I've set up an IIS virtual drive that has the alias I want locally, and points to this network drive. I entered in my...
6
6768
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 about the ability. If not, what advice can u provide? thank you in advance. ur help will be appreaciated.
2
8088
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 network drive, copying the same files from the same source drive and to the same destination drive, it gives me the following exception: System.Security.SecurityException: Request for the permission of type...
5
2522
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 Studio 2005 with Service Pack 1 and now it gives me the "Directory not found " exception when I try to write to a network location. I am running it on Vista as a standard user. However, I have opened Visual Studio using the "run as...
9
3455
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
2311
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 System.Diagnostics.Process.Start("net.exe", "use K: \\Server\URI\path\here /USER:username password" ) Dim p = New System.Diagnostics.Process p.Start("k:\" & Filename) System.Diagnostics.Process.Start("net.exe", "use /delete K:" ) And it is working fine. But for big files and...
0
9489
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10357
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10162
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5396
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.