running batch file from server

  • hi,

    My batch file is in the server. in execute process task i have the name of the server in the executable part but when i ran the task nothing happens..

    can you guyz suggest something.

    thanks

  • Please give some more details about the problem that you are facing.

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

  • hi,

    i have created a batch file which downloads files from sftp. it runs fine on my pc but when i copied them to the server, they dont run.

    simply a dos opens and closes nothing happens.

    now if i use ssis and include the path to the batch file i do \\servername\path....

    but still nothing happens

  • Please go to command prompt (cmd) and run the batch file You should be getting some error there.

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

  • how would i ran the batch from command line(i mean the command)

  • Please go to Start --> Run

    Type cmd

    Click Go

    Then go to the directory in which the batch file exists (e.g. CD C:\WINDOWS)

    Then type batch file namd and press enter.

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

  • thanks.

    there were some errors and i corrected them(mainly path problems). but now it says failed to connect. connection refused.

    i am doing a connection using this line:

    psftp username@hostname -v -bv -batch -pw password -b download.bat

    and in download.bat i am changing directories and mget the files

  • Looks like authentication issue. Please verify that you have access to the FTP path. Try it from the browser.

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply