Windows Command line

1
0
-1

I am trying to automate ftp downloading process. Basically it is suppose to do the following tasks. 1. Open ftp to some location using windows FTP CLI using username and password as parameters 2. Go to certain directory e.g: cd [some directory name] 3. Download or get file 4. close ftp

Can someone create a sample diagram for me so that I can actually modify and execute it? Also, please let me know how to execute it. When I try running it, all it does is open a portal and say "submit case1" submit case 2 and so forth.

Please help.

Thank you so much for your help.

1 answer

1
0
-1

I will show you how to do it (in a fashion) but it's up to you to implement it... :) best way to learn :)

I'm assuming Windows, if you want ?nix, you're on your own...

first create a batch file with the necessary commands in and make sure this works as you intend...

  1. Create a new diagram
  2. make Step1 a Service or Script task
  3. in the step details Connectors -> Add
  4. Click on Script and select System Script -> Next
  5. give it a name etc. -> Next
  6. in interpreter type cmd
  7. in Execution parameter type /c
  8. in Write your script here type

path and command to your FTP batch file...for example

c:\mybatchfiles\ftp.bat

to test it, click test, click OK, and see the output of the execution.

try it with ipconfig and you will see the results on the screen straight away.

If you want the output of the operation click -> Next and set the output variables as required.

The screens will appear if you are executing in the fashion of a human task, or using the portal to start it,

To remove the pool screen you can click on the pool - details Application Tab -> Pageflow Tab and select Skip.

Once you have it operating in the background (not using the portal) all screens will then disappear,

Hope this helps regards Seán

Notifications