<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Passing parameter to Ftp Script in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712993#M6925</link>
    <description>Hi All,&lt;BR /&gt;I would like your help.&lt;BR /&gt;&lt;BR /&gt;IÂ´m trying to automate my FTL process but every script or solution that I have seen in the WEB tells me to create a file with user and password inside.&lt;BR /&gt;&lt;BR /&gt;IÂ´m not allowed to create a file with user and password, so I have to use a parameter to do a FTP.&lt;BR /&gt;&lt;BR /&gt;I have tryed to create a bat like this:&lt;BR /&gt;ftp -i dsv075&lt;BR /&gt;%1&lt;BR /&gt;%2&lt;BR /&gt;pause&lt;BR /&gt;lcd %dirlcd%&lt;BR /&gt;cd %dircdput%&lt;BR /&gt;binary&lt;BR /&gt;prom&lt;BR /&gt;......&lt;BR /&gt;&lt;BR /&gt;But the script ask me always the user and password without use %1 and %2.&lt;BR /&gt;&lt;BR /&gt;Do you have any idea?&lt;BR /&gt;&lt;BR /&gt;Thank you very much and it is urgent.&lt;BR /&gt;&lt;BR /&gt;Gustavp&lt;BR /&gt;</description>
    <pubDate>Wed, 14 Apr 2010 12:28:02 GMT</pubDate>
    <dc:creator>ftp</dc:creator>
    <dc:date>2010-04-14T12:28:02Z</dc:date>
    <item>
      <title>Passing parameter to Ftp Script</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712987#M6919</link>
      <description>Hi, &lt;BR /&gt; &lt;BR /&gt;I am automating an Ftp task. &lt;BR /&gt;Done mainly, just need to pass an parameter, which i am unable to do. &lt;BR /&gt; &lt;BR /&gt;What i am doing is: &lt;BR /&gt; &lt;BR /&gt;&lt;FTP_AUTOMATE.BAT&gt; &lt;BR /&gt;ftp -s:Input_file hostname &lt;BR /&gt; &lt;BR /&gt;&lt;INPUT_FILE&gt; &lt;BR /&gt;username &lt;BR /&gt;password &lt;BR /&gt;commnad &lt;PUT file_to_be_supplied_at_command_prompt=""&gt; &lt;BR /&gt;bye &lt;BR /&gt; &lt;BR /&gt;In the command i want to transfer one file. &lt;BR /&gt;This file will be given at the command prompt while calling that Ftp_Automate.bat so that it can be a general one. &lt;BR /&gt; &lt;BR /&gt;Now how do i do this?&lt;/PUT&gt;&lt;/INPUT_FILE&gt;&lt;/FTP_AUTOMATE.BAT&gt;</description>
      <pubDate>Thu, 19 Jan 2006 05:14:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712987#M6919</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2006-01-19T05:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter to Ftp Script</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712988#M6920</link>
      <description>This will work:&lt;BR /&gt;&lt;BR /&gt;&lt;FTP_AUTOMATE.BAT&gt;&lt;BR /&gt;&lt;BR /&gt;echo put %1 | ftp -s:Input_file hostname&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;INPUT_FILE&gt;&lt;BR /&gt;username&lt;BR /&gt;password&lt;BR /&gt;&lt;BR /&gt;Then run:&lt;BR /&gt;&lt;BR /&gt;Ftp_automate.bat filename_to_put&lt;/INPUT_FILE&gt;&lt;/FTP_AUTOMATE.BAT&gt;</description>
      <pubDate>Thu, 19 Jan 2006 07:27:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712988#M6920</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-01-19T07:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter to Ftp Script</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712989#M6921</link>
      <description>Oops,&lt;BR /&gt;&lt;BR /&gt;I am unable to get that in place.&lt;BR /&gt;&lt;BR /&gt;&lt;FTP_AUTOMATE.BAT&gt;&lt;BR /&gt;echo put %1 | ftp -s:Input_file hostname&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;INPUT_FILE&gt;&lt;BR /&gt;username&lt;BR /&gt;password&lt;BR /&gt;&lt;BR /&gt;Then run:&lt;BR /&gt;Ftp_automate.bat filename_to_put&lt;BR /&gt;&lt;BR /&gt;Now where will it put the file.&lt;BR /&gt;I also need to do a cd, because the location is different.&lt;BR /&gt;Also it simpy echoes the whole line and not doing a Ftp.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/INPUT_FILE&gt;&lt;/FTP_AUTOMATE.BAT&gt;</description>
      <pubDate>Thu, 19 Jan 2006 08:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712989#M6921</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2006-01-19T08:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter to Ftp Script</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712990#M6922</link>
      <description>Then, try something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;FTP_AUTOMATE.BAT&gt;&lt;BR /&gt;&lt;BR /&gt;echo user username &amp;gt; Input_file&lt;BR /&gt;echo password &amp;gt;&amp;gt; Input_file&lt;BR /&gt;echo cd %1 &amp;gt;&amp;gt; Input_file&lt;BR /&gt;echo put %2 &amp;gt;&amp;gt; Input_file&lt;BR /&gt;echo bye &amp;gt;&amp;gt; Input_file&lt;BR /&gt;ftp -n -s:Input_file hostname&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then use like this:&lt;BR /&gt;&lt;BR /&gt;Ftp_automate.bat directory file&lt;/FTP_AUTOMATE.BAT&gt;</description>
      <pubDate>Thu, 19 Jan 2006 10:40:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712990#M6922</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-01-19T10:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter to Ftp Script</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712991#M6923</link>
      <description>Ivan's got a good example.  I would add to it, some error checking and a Usage example though.&lt;BR /&gt;-------------------&lt;BR /&gt;@echo off&lt;BR /&gt;rem ..: ftp_automate.bat&lt;BR /&gt;rem ..: Automates FTP of system files&lt;BR /&gt;rem ..: files needed ftp_automate.bat, Input_file&lt;BR /&gt;rem ..:----------------------------------&lt;BR /&gt;&lt;BR /&gt;if %2!==! goto error&lt;BR /&gt;echo user username &amp;gt; Input_file&lt;BR /&gt;echo password &amp;gt;&amp;gt; Input_file&lt;BR /&gt;echo cd %1 &amp;gt;&amp;gt; Input_file&lt;BR /&gt;echo put %2 &amp;gt;&amp;gt; Input_file&lt;BR /&gt;echo bye &amp;gt;&amp;gt; Input_file&lt;BR /&gt;ftp -n -s:Input_file hostname&lt;BR /&gt;goto done&lt;BR /&gt;:error&lt;BR /&gt;echo Usage:  ftp_automate directory filename&lt;BR /&gt;:done&lt;BR /&gt;rem ..:---------------------------------&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Jan 2006 13:21:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712991#M6923</guid>
      <dc:creator>Jon Finley</dc:creator>
      <dc:date>2006-01-19T13:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter to Ftp Script</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712992#M6924</link>
      <description>Great guys,&lt;BR /&gt;&lt;BR /&gt;It works now.&lt;BR /&gt;But i think there must be a formal way of passing parameters rather than echoing :-)</description>
      <pubDate>Mon, 23 Jan 2006 03:38:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712992#M6924</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2006-01-23T03:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter to Ftp Script</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712993#M6925</link>
      <description>Hi All,&lt;BR /&gt;I would like your help.&lt;BR /&gt;&lt;BR /&gt;IÂ´m trying to automate my FTL process but every script or solution that I have seen in the WEB tells me to create a file with user and password inside.&lt;BR /&gt;&lt;BR /&gt;IÂ´m not allowed to create a file with user and password, so I have to use a parameter to do a FTP.&lt;BR /&gt;&lt;BR /&gt;I have tryed to create a bat like this:&lt;BR /&gt;ftp -i dsv075&lt;BR /&gt;%1&lt;BR /&gt;%2&lt;BR /&gt;pause&lt;BR /&gt;lcd %dirlcd%&lt;BR /&gt;cd %dircdput%&lt;BR /&gt;binary&lt;BR /&gt;prom&lt;BR /&gt;......&lt;BR /&gt;&lt;BR /&gt;But the script ask me always the user and password without use %1 and %2.&lt;BR /&gt;&lt;BR /&gt;Do you have any idea?&lt;BR /&gt;&lt;BR /&gt;Thank you very much and it is urgent.&lt;BR /&gt;&lt;BR /&gt;Gustavp&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Apr 2010 12:28:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/passing-parameter-to-ftp-script/m-p/3712993#M6925</guid>
      <dc:creator>ftp</dc:creator>
      <dc:date>2010-04-14T12:28:02Z</dc:date>
    </item>
  </channel>
</rss>

