473,775 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

4 New Member
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
4 4804
Plater
7,872 Recognized Expert Expert
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
karthiknd
4 New Member
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
7,872 Recognized Expert Expert
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\my script.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
davef
98 New Member
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

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

Similar topics

1
2751
by: Green | last post by:
Hi, I had a question about how to copy files from server to server on the same LAN. Basically, i need to copy files from "develope server" to the "test server", then eventually to the "production server". But i don't know how to deal with this. Do you have any example code or hint? I appreciate in advance!
4
5255
by: maglev_now | last post by:
I'm using .net 1.1 trying to get a list of files in folder on the server. The user would select the file they want to download from a DropDownList. Can someone tell me how this should be done? I can't find the right class or object to use. Is it the File class or the FolderBrowser? Stuck like Chuck!!! Any suggestions welcome. Thanks.
3
4295
by: vinoda2005 | last post by:
Hi friends, Here is my problem........ if i click on folder in C drive,a prompt box should be displayed asking username and password.if the entered details r valid,the folder should open otherwise C drive must open.... Please it is very urgent for me.....help mee....
0
373
by: ravindravarman | last post by:
I need to assing some value from the java script variable in the .aspx page to a server side variable in the .aspx.cs page. Can any one help me with this? Thanks, Ravi
1
11896
by: tienlx | last post by:
Hi all, I want to copy files to shared folder to another computer in Local area network. Although, Ba-hcm\Administrator have full access permission to that folder, but it always throws "Access denied" error. Is anything wrong? thanks,
0
1307
by: sivaramsekar | last post by:
Hi, I have a requirement to copy files (images) from a different server to our web server which has IIS 6.0 and asp.net 3.5. When i try it in my local dev machine i am able to copy and save the files however if i deploy the project in the server i am not able to save the file in the web server and there is no error which throws also. I guess it would be because of the permissions in the IIS for the IUR_Account and the AspNet...
3
1707
by: raghulvarma | last post by:
if I type the code as <input type="text" name="txtbox" > and make the script language as function empty() { if(document.Form1.txtbox.value=="") { alert("should not be blank"); return false; }
7
3261
by: Jason | last post by:
How would I create a simple vb script with a GUI interface to copy files from a fileserver to a PC. for example, I would have a form with Radio Buttons or Check Boxes box1 - copy prefs box2 - copy keyboard shortcuts box3 - copy workspace and a RUN button
3
35432
by: AngeB | last post by:
Hi, I'm looking for a script to copy transaction log backup files from a network drive I have mapped to a local folder. Part of the filenames are common dbname_tlog_datehour.trn (date is formated y/m/d and is 24 hour format ex: 1600, 1700, 1800....) I've searched some perl forums and found a few scripts to try but haven't had any luck getting this working. Any help is appreciated.
0
9622
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10268
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
10107
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
10048
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
9916
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
8939
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
7464
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
6718
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
5486
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.