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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karthiknd
    New Member
    • Sep 2007
    • 4

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

    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.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    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.

    Comment

    • karthiknd
      New Member
      • Sep 2007
      • 4

      #3
      need DOS script or WS script to copy files from one system to server folder

      Originally posted by Plater
      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 ???????
      Last edited by karthiknd; Sep 18 '07, 01:50 PM. Reason: i want solution in WS script or in DOS script and not in java script

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        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.

        Comment

        • davef
          New Member
          • Sep 2007
          • 98

          #5
          Originally posted by karthiknd
          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:

          Comment

          Working...