﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Ipswitch Forums / Ipswitch Products / Ipswitch Instant Messaging  / executing a script file from command line / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Ipswitch Forums</description><link>http://forums.ipswitch.com/</link><webMaster>forums@ipswitch.com</webMaster><lastBuildDate>Sun, 12 Oct 2008 05:38:56 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: executing a script file from command line</title><link>http://forums.ipswitch.com/Topic496-11-1.aspx</link><description>&lt;P&gt;Am i not rigth or is this topic in the wrong section?&lt;/P&gt;</description><pubDate>Thu, 19 Aug 2004 15:01:56 GMT</pubDate><dc:creator>DomtarAdmin</dc:creator></item><item><title>executing a script file from command line</title><link>http://forums.ipswitch.com/Topic496-11-1.aspx</link><description>&lt;FONT face=Helv size=2&gt;&lt;P&gt;I would appreciate help on this.&lt;/P&gt;&lt;P&gt;The following script is contained on a file called script 20040707_001.scp&lt;/P&gt;&lt;P&gt;The code runs OK when I use the Scripting Utility, but when I try to run the&lt;/P&gt;&lt;P&gt;file from the command line, it brings up the WS_FTP_PRO URL HANDLER&lt;/P&gt;&lt;P&gt;which either takes me to ftp://ftpscrpt/ or to the FTP_PRO interface - neither being&lt;/P&gt;&lt;P&gt;what I want. From the Guide I understood that the script contained in the file can be&lt;/P&gt;&lt;P&gt;run from the command line by typing &lt;/P&gt;&lt;P&gt;ftpscrpt -f "C:\Program Files\WS_FTP Pro\My Scripts\script 20040707 001.scp"&lt;/P&gt;&lt;P&gt;and clicking OK.&lt;/P&gt;&lt;P&gt;I am using WS_FTP_PRO 7.6 on WINNT. I did add the FTP_PRO to the path variable in the system&lt;/P&gt;&lt;P&gt;environment.&lt;/P&gt;&lt;P&gt;THANKS!&lt;/P&gt;&lt;P&gt;TRACE SCREEN&lt;/P&gt;&lt;P&gt;LOG SCREEN&lt;/P&gt;&lt;P&gt;USER userid&lt;/P&gt;&lt;P&gt;PASS password&lt;/P&gt;&lt;P&gt;CONNECT IpAddress&lt;/P&gt;&lt;P&gt;CD /NCCI/Z_TEST\INCOMING&lt;/P&gt;&lt;P&gt;LCD \\ALBANY2\WCB1\APPDATA\ICEDI\POC\WC\z_test&lt;/P&gt;&lt;P&gt;MGET *.NCW&lt;/P&gt;&lt;P&gt;CD /NCCI/Z_TEST\OUTGOING&lt;/P&gt;&lt;P&gt;MPUT *.NCW&lt;/P&gt;&lt;P&gt;CLOSE&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 02 Aug 2004 11:01:26 GMT</pubDate><dc:creator>Joe1776</dc:creator></item></channel></rss>