473,323 Members | 1,547 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,323 software developers and data experts.

Web app, copy files on client machine

Hi
I have a Web application.

How could I copy a file from one path on the client machine to another
path on the client machine?

Thanks.

Nov 17 '05 #1
3 2086
This is a tricky question. Your web app doesn't have access to the client
machine.

To get acces you will have to take a different route. Most people would
try an ActiveX control here since they run inside the browser on the client
machine and as such have access to the file system. However this is an
unmanaged solution.

In terms on managed solutions I don't know of good one.

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
http://blogs.msdn.com/jaredpar
"This posting is provided "AS IS" with no warranties, and confers no rights"
"Iwan Petrow" <xx****@abv.bg> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi
I have a Web application.

How could I copy a file from one path on the client machine to another
path on the client machine?

Thanks.

Nov 17 '05 #2
> In terms on managed solutions I don't know of good one.
I don't believe there is.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
"Jared Parsons [MSFT]" <ja******@online.microsoft.com> wrote in message
news:e7**************@tk2msftngp13.phx.gbl...
This is a tricky question. Your web app doesn't have access to the client
machine.

To get acces you will have to take a different route. Most people would
try an ActiveX control here since they run inside the browser on the
client machine and as such have access to the file system. However this
is an unmanaged solution.

In terms on managed solutions I don't know of good one.

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
http://blogs.msdn.com/jaredpar
"This posting is provided "AS IS" with no warranties, and confers no
rights"
"Iwan Petrow" <xx****@abv.bg> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi
I have a Web application.

How could I copy a file from one path on the client machine to another
path on the client machine?

Thanks.


Nov 17 '05 #3
You could do something in the form of

1) Having IE host a .NET Control via your page
2) Sign the assembly that contains the control
3) Grant Full Trust to the assembly on the client

That should give the control sufficient permissions to modify the computer.
The trick is step #3. For that you would need

1) Have the client user manually grant the assembly sufficient trust
2) Host a separate ActiveX control that grants the assembly trust.

I don't think the average user will want to do #1 and #2 is back into an
unmanaged solution.

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
http://blogs.msdn.com/jaredpar
"This posting is provided "AS IS" with no warranties, and confers no rights"
"Alvin Bruney [MVP - ASP.NET]" <www.lulu.com/owc> wrote in message
news:uA*************@TK2MSFTNGP14.phx.gbl...
In terms on managed solutions I don't know of good one.

I don't believe there is.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
"Jared Parsons [MSFT]" <ja******@online.microsoft.com> wrote in message
news:e7**************@tk2msftngp13.phx.gbl...
This is a tricky question. Your web app doesn't have access to the
client machine.

To get acces you will have to take a different route. Most people would
try an ActiveX control here since they run inside the browser on the
client machine and as such have access to the file system. However this
is an unmanaged solution.

In terms on managed solutions I don't know of good one.

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
http://blogs.msdn.com/jaredpar
"This posting is provided "AS IS" with no warranties, and confers no
rights"
"Iwan Petrow" <xx****@abv.bg> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi
I have a Web application.

How could I copy a file from one path on the client machine to another
path on the client machine?

Thanks.



Nov 17 '05 #4

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

Similar topics

0
by: Tess | last post by:
Hi, Long time reader, first time poster... Any help is appreciated. I have a few questions regarding Winform controls embedded within an html page. For more info please see the appendix. Now,...
2
by: Shayer | last post by:
Hello I want to copy a file from server to client machine. How can i do that. I may have to use byte stream but how can i do that . Pls tell me THanks
1
by: POnfri | last post by:
Hi, I have a problem in a peace of code were i'm doing a file copy using File.Copy. The Source is local and the target is a remote machine. Example: File.Copy(C:\temp\hi.txt,...
2
by: Steve Franks | last post by:
The Copy Web tool provided with VS.NET 2005 is very convenient. However every once in a while it seems to think the files on the remote server have changed, which they have not. Then when I use...
9
by: CGW | last post by:
I asked the question yesterday, but know better how to ask it, today: I'm trying to use the File.Copy method to copy a file from a client to server (.Net web app under IIS ). It looks to me that...
5
by: RvGrah | last post by:
I've built a small app to deploy my apps in a small domain, just for my own use when I make small updates to pass to my end users. My app uses File.Copy, and works fine except that it takes a long...
4
by: pradqdo | last post by:
Hi folks, I have a very strange problem when I try to port my client/server program to cygwin. It is a simple shell program where the server executes client's commands + it can send and receive...
9
by: fniles | last post by:
I would like to copy a table(s) from SQL Server 2005 to a CVS file and vice versa. I was thinking to use the BCP command line utility, but I have a few questions: 1. The machine where I am...
2
by: DarthIvan | last post by:
I need to copy some files to a server, that I can only access by logging in with different credentials from my own. I want to be able to do the login stuff programatically. How do I get File.Copy...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.