42 users online (1 members and 41 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 2
  2. Replies: 0
  3. Replies: 1
  4. Unable to download file    Forum: CGI Perl Forum
    Replies: 3
  1. #1
    gtselvam's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2007
    Posts
    1

    Exclamation Unable to copy the text file from one M/C to another M/c shared folder using CGi scri

    Dear all,
    Can anyone give me the solution for this issue.
    I wriitten a bat file called 'build.bat'. Its having following content.
    copy "new.txt" "I:\build"
    This build.bat is calling inside the cgi script. It has to be executed through cgi script in submit button on web, Copying is not happened once click the submit button. Whereas its copied if i run the build.bat file in command prompt.
    Regards,
    Selvam

  2. #2
    xmassey's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2007
    Posts
    100

    Re: Unable to copy the text file from one M/C to another M/c shared folder using CGi

    post the cgi script so we can view it and see if you have made a mistake. There are a few different ways in which files can be copied. The simplest way would obviously be to open the file you would like to copy (into variable @file_contents), create a new file, then copy the contents from the current file into the newly created file (from @file_contents). However there are various modules you could use. How have you done it?



Tags for this Thread