2 Replies Latest reply: Apr 2, 2014 3:46 AM by Phanikanth RSS

    OS command

    Indraa Banerjee

      Hi,

      I have a file test_indra.txt that cotains WINScp command.

      Now from Command promt i need to write below two line to execute it.

       

      cd   C:\Program Files (x86)\WinSCP

      WinSCP  /script="test_indra.txt"

       

      Can you help me to execute it via ODI using OS command.

      If I write cmd c/ C:\Program Files (x86)\WinSCP  it does not work.

       

      Please help.Its urgent!!!


        • 1. Re: OS command
          JeromeFr

          Hi,

           

          The easiest way is to create a bat file with your two lines and call it from ODI using OS Command.

           

          Regards,

          JeromeFr

          • 2. Re: OS command
            Phanikanth

            Hi

             

            Place below commands on test.bat file and place test.bat file at D: drive (eg: D:\test.bat)

             

            cd   C:\Program Files (x86)\WinSCP

            WinSCP  /script="test_indra.txt"

             

            and write below code on OS Commands package tool

             

            CMD/C  D:\test.bat

             

            Hope this will helps you to fulfill your requirement

             

            Regards,

            Phanikanth