473,657 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Link to file

Hi everybody,

I'd like to create a link to a file instead of copying the file to the new
destination.
Is there a possibility to do this ? Is there something like a Link Object in
C# .NET ?

I'll be very greatful for an answer asap :-)

Thanks

Heinz
Jul 21 '05 #1
4 2055
The Windows Filesystem doesn't have linked files.

Are you talking about Visual Studio being able to make a link to a source
code file from another project without copying it into the project? Because
Visual Studio *can* do that.

Just in case, and in the interest of time, if that is what you are looking
for...
In VS.NET, right click the project name that you want to add the linked
file, and select Add Existing Item
In the dialog, find the item on disk.
Instead of clicking the Open button, you will notice that there is a little
"drop-down arrow" on the right hand side of the button itself. Click the
Arrow and select "link to file"

Your project will refer to the source file without copying it to the current
project directory.

HTH,
--- Nick

"HKannen" <HK*****@discus sions.microsoft .com> wrote in message
news:DF******** *************** ***********@mic rosoft.com...
Hi everybody,

I'd like to create a link to a file instead of copying the file to the new
destination.
Is there a possibility to do this ? Is there something like a Link Object in C# .NET ?

I'll be very greatful for an answer asap :-)

Thanks

Heinz

Jul 21 '05 #2
Thanks Nick,

but unfortunately this was not what I was looking for.

I am working on large ( up to 1GB) files in my web service and I wanted to
avoid copying these files. Instaed I wanted to create a link to the file and
work on the link afterwards.

Nevertheless thank you for your answer. :-(

Heinz

"Nick Malik" wrote:
The Windows Filesystem doesn't have linked files.

Are you talking about Visual Studio being able to make a link to a source
code file from another project without copying it into the project? Because
Visual Studio *can* do that.

Just in case, and in the interest of time, if that is what you are looking
for...
In VS.NET, right click the project name that you want to add the linked
file, and select Add Existing Item
In the dialog, find the item on disk.
Instead of clicking the Open button, you will notice that there is a little
"drop-down arrow" on the right hand side of the button itself. Click the
Arrow and select "link to file"

Your project will refer to the source file without copying it to the current
project directory.

HTH,
--- Nick

"HKannen" <HK*****@discus sions.microsoft .com> wrote in message
news:DF******** *************** ***********@mic rosoft.com...
Hi everybody,

I'd like to create a link to a file instead of copying the file to the new
destination.
Is there a possibility to do this ? Is there something like a Link Object

in
C# .NET ?

I'll be very greatful for an answer asap :-)

Thanks

Heinz


Jul 21 '05 #3
> The Windows Filesystem doesn't have linked files.

That isnt true - look up junction points which are similar to hard links in
Unices

--
Sriram Krishnan

http://www.dotnetjunkies.com/weblog/sriram
"Nick Malik" <ni*******@hotm ail.nospam.com> wrote in message
news:wgudd.1606 87$He1.115130@a ttbi_s01...
Are you talking about Visual Studio being able to make a link to a source
code file from another project without copying it into the project?
Because
Visual Studio *can* do that.

Just in case, and in the interest of time, if that is what you are looking
for...
In VS.NET, right click the project name that you want to add the linked
file, and select Add Existing Item
In the dialog, find the item on disk.
Instead of clicking the Open button, you will notice that there is a
little
"drop-down arrow" on the right hand side of the button itself. Click the
Arrow and select "link to file"

Your project will refer to the source file without copying it to the
current
project directory.

HTH,
--- Nick

"HKannen" <HK*****@discus sions.microsoft .com> wrote in message
news:DF******** *************** ***********@mic rosoft.com...
Hi everybody,

I'd like to create a link to a file instead of copying the file to the
new
destination.
Is there a possibility to do this ? Is there something like a Link Object

in
C# .NET ?

I'll be very greatful for an answer asap :-)

Thanks

Heinz


Jul 21 '05 #4
not the same... not even close.

A linked file in Unix is just that... a file. A junction point in NTFS is a
directory or volume.

A linked file can exist in two different directories. The contents of the
rest of the directory is not affected by the fact that the file is linked.
Not true for a junction point directory, where every file in the directory
exists in two "places".

In Unix, if you delete a linked file from one directory, it still exists in
the other. In NTFS, if you delete a file from a junction point, it's gone.
There was only one "file" in the file system, even though it had two names.

When you create a junction point, it's really a substitution cypher to find
the destination directory or volume given a starting path. Junction points
are useful but not really documented and wildly underused.

In UNIX, you can mount volumes as a directory. Clearly the logic behind
junction points is the same: mount a volume as a sub directory.

However, this is definitely not the same as a linked file.

--- Nick

"Sriram Krishnan" <ks*****@NOSPAM gmx.net> wrote in message
news:ud******** ******@TK2MSFTN GP10.phx.gbl...
The Windows Filesystem doesn't have linked files.

That isnt true - look up junction points which are similar to hard links

in Unices

--
Sriram Krishnan

http://www.dotnetjunkies.com/weblog/sriram
"Nick Malik" <ni*******@hotm ail.nospam.com> wrote in message
news:wgudd.1606 87$He1.115130@a ttbi_s01...
Are you talking about Visual Studio being able to make a link to a source code file from another project without copying it into the project?
Because
Visual Studio *can* do that.

Just in case, and in the interest of time, if that is what you are looking for...
In VS.NET, right click the project name that you want to add the linked
file, and select Add Existing Item
In the dialog, find the item on disk.
Instead of clicking the Open button, you will notice that there is a
little
"drop-down arrow" on the right hand side of the button itself. Click the Arrow and select "link to file"

Your project will refer to the source file without copying it to the
current
project directory.

HTH,
--- Nick

"HKannen" <HK*****@discus sions.microsoft .com> wrote in message
news:DF******** *************** ***********@mic rosoft.com...
Hi everybody,

I'd like to create a link to a file instead of copying the file to the
new
destination.
Is there a possibility to do this ? Is there something like a Link
Object in
C# .NET ?

I'll be very greatful for an answer asap :-)

Thanks

Heinz



Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3279
by: j erickson | last post by:
with the following xsl and xml file, the display of the gif file with the <image/url> tag works. However, the gif file in the <description> tag using the name attribute "src" won't make the correct link to the gif file. why? <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
2
2363
by: JenHu | last post by:
hi, I have a datagrid in my asp.net application, I am using vb.net language. I want to have my last column as a link column, link to text file. The link path is "c:\Temp\" & F_File_Name, which is the 2nd column. For example, the data grid should like this:
6
2039
by: Ozz | last post by:
Hi there, I have a link on my web page. When clicked, opens up a pdf file that is stored on my server. Every file is specific to a user's user name and I don't want users to see each other's files. For example: When User1 clicks on the link, it opens up http://mydomain.com/files/user1.pdf and when User2 clicks on the link, it opens up http://mydomain.com/files/user2.pdf.
0
2168
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
0
4005
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
1
22071
yabansu
by: yabansu | last post by:
Hi all, I implemented a basic client application. It communicates with server and works properly. Building processes succeed just by giving the following warning: LINK : D:\DOC\Visual Studio 2005\Projects\Client01\Debug/Client01.exe not found or not built by the last incremental link; performing full link This warning occurs when building/rebuilding the project after cleaning the intermediate and output files. If the project is once...
26
2979
by: Nospam | last post by:
I am trying to open a link in a new template window : <a onclick="windowopen('example.html','example');return false;" href="http://www.example.com" target="_blank"example link</a> such that clicking on the example link will open it in a new window in an already saved template/site/ called example.html
8
2481
by: Bern McCarty | last post by:
We have a large mixed dll that I can never seem to get to link incrementally. Below is the console output. For simplicity I've eliminated some stuff that we normally do when we really link this dll like manifest embedding and strong name delay signing. Can anyone see anything wrong with my link command? Or offer some other explanation why I can never get an incremental link out of it? To test, I'm just touching one of the source files so...
11
8123
by: mosscliffe | last post by:
I am trying to create a link to a file, which I can then use in an HTML page. The system is Linux on a hosted web service, running python 2.3. Other than that I have no knowledge of the system. The link is created OK, but when I try to use it as filename for the IMG TAG, it does not get displayed. The page source of the created page is pointing to the link as temp/test1.jpg
0
14280
ADezii
by: ADezii | last post by:
Rather than using CurrentProject.Connection or entering your own Connection information, ADO supports storing Connection information in an external file called a Data Link File (which normally has a *.UDL extension). Data Link Files provide two very important capabilities: They implement a graphical interface for constructing what can be complex and confusing OLE DB Connection Strings. They offer a way to allow Users to edit Connection...
0
8737
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...
1
8509
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7345
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...
1
6174
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4168
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
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1730
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.