By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,417 Members | 1,825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,417 IT Pros & Developers. It's quick & easy.

need java script to copy files from one system to server folder

P: 4
hi everyone ,
i need a script which copy folder from one system and has to be replaced in server folder which is in another system. This java script has to be called in asp.net page. Each time when asp.net page refresh the script function is to be called and has to be replaced all files in server folder.
Sep 18 '07 #1
Share this Question
Share on Google+
4 Replies


Plater
Expert 5K+
P: 7,872
javascript only runs on the client computer...
Are you saying you want the script to move files from the client computer to another computer? JAvascript generally doesn't have access to those kind of resources.
Sep 18 '07 #2

P: 4
javascript only runs on the client computer...
Are you saying you want the script to move files from the client computer to another computer? JAvascript generally doesn't have access to those kind of resources.
Hi,thanks for the reply .. i want the solution in DOS script or in WS script.. is that possible ???????
Sep 18 '07 #3

Plater
Expert 5K+
P: 7,872
Well I guess what you could do is if every computer was garunteed to have your script in the same location (i.e c:\webscript\myscript.bat ), then you could have your webpage do a redirect to a local file like that.
The user will got lots of bells/whistles about security issues, but it could in theory work.
Sep 18 '07 #4

P: 98
Hi,thanks for the reply .. are u sure it wont work with java script.. ???? is that possible in vb script ??? if yes can u give me the code
As mentioned above, JS client code doesn't have the necessary permissions to do system operations. You may wanna think about building an ActiveX component, which gets installed on the client to do just that. It's one of the alternatives. Another approach is to engage AJAX. Refer to this article:
http://www.codeproject.com/useritems/AJAXUpload.asp
Sep 18 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.