<?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: Need script to ftp single file in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600518#M11523</link>
    <description>Hi Patrick ,&lt;BR /&gt;&lt;BR /&gt;I did the same as you said .Created 2 files 1 with name ftp-file.script on to which i copied the content &amp;amp; run the command ftp -inv -s:ftp-file.script from the command prompt and got the below error ;&lt;BR /&gt;&lt;BR /&gt;C:\Users\VPatankar&amp;gt;ftp -inv -s:ftp-file.script&lt;BR /&gt;Error opening script file ftp-file.script.&lt;BR /&gt;&lt;BR /&gt;Transfers files to and from a computer running an FTP server service&lt;BR /&gt;(sometimes called a daemon). Ftp can be used interactively.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please suggest ...&lt;BR /&gt;&lt;BR /&gt;Thanks Vishal</description>
    <pubDate>Wed, 03 Sep 2014 20:42:45 GMT</pubDate>
    <dc:creator>Vishal_1980</dc:creator>
    <dc:date>2014-09-03T20:42:45Z</dc:date>
    <item>
      <title>Need script to ftp single file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600000#M11521</link>
      <description>&lt;P&gt;Hello Expert ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to run the ftp comand from my local desktop to&amp;nbsp; ftp 1 single file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This file is critical to copy for the application patch installation &amp;amp; upgrade.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are the steps that i am following.Can i make this commands in a script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Open cmd window on MSCM Server&lt;BR /&gt;D:&lt;BR /&gt;cd MSCM/DSSO&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;(or DSSO)&lt;BR /&gt;&lt;BR /&gt;ftp -nv srvname&lt;BR /&gt;&lt;BR /&gt;user &amp;lt;userid&amp;gt;&lt;BR /&gt;&lt;BR /&gt;bin&lt;BR /&gt;&lt;BR /&gt;prompt&lt;BR /&gt;&lt;BR /&gt;cd /law/c0xxyy/gen/perms_files&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;pwd&lt;BR /&gt;&lt;BR /&gt;dir&lt;BR /&gt;&lt;BR /&gt;get DSSO.jar&lt;BR /&gt;&lt;BR /&gt;quit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; with regards,&lt;/P&gt;
&lt;P&gt;Vishal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moved&amp;nbsp;from HP-UX &amp;gt; Languages and Scripting to Microsoft &amp;gt; general. - Hp Forum Moderator&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 01:08:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600000#M11521</guid>
      <dc:creator>Vishal_1980</dc:creator>
      <dc:date>2014-09-04T01:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to ftp single file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600510#M11522</link>
      <description>&lt;P&gt;A quick Google search yielded some good results: &lt;A target="_blank" href="http://lmgtfy.com/?q=windows+ftp+batch+file"&gt;http://lmgtfy.com/?q=windows+ftp+batch+file&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically it will require 2 files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The contents of the first file, names ftp-file.script, should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;open srvname&lt;/P&gt;&lt;P&gt;userid&lt;/P&gt;&lt;P&gt;password&lt;/P&gt;&lt;P&gt;lcd /D "D:\MSCM\DSSO"&lt;/P&gt;&lt;P&gt;bin&lt;BR /&gt;prompt&lt;BR /&gt;cd /law/c0xxyy/gen/perms_files&lt;BR /&gt;pwd&lt;BR /&gt;dir&lt;BR /&gt;get DSSO.jar&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second file, named ftp-file.bat, should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ftp -i -s:ftp-file.script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, when you want to FTP the file, just run the ftp-file.bat file.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 20:29:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600510#M11522</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2014-09-03T20:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to ftp single file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600518#M11523</link>
      <description>Hi Patrick ,&lt;BR /&gt;&lt;BR /&gt;I did the same as you said .Created 2 files 1 with name ftp-file.script on to which i copied the content &amp;amp; run the command ftp -inv -s:ftp-file.script from the command prompt and got the below error ;&lt;BR /&gt;&lt;BR /&gt;C:\Users\VPatankar&amp;gt;ftp -inv -s:ftp-file.script&lt;BR /&gt;Error opening script file ftp-file.script.&lt;BR /&gt;&lt;BR /&gt;Transfers files to and from a computer running an FTP server service&lt;BR /&gt;(sometimes called a daemon). Ftp can be used interactively.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please suggest ...&lt;BR /&gt;&lt;BR /&gt;Thanks Vishal</description>
      <pubDate>Wed, 03 Sep 2014 20:42:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600518#M11523</guid>
      <dc:creator>Vishal_1980</dc:creator>
      <dc:date>2014-09-03T20:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to ftp single file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600528#M11524</link>
      <description>&lt;P&gt;Are both files in the same directory?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error indicates that it can't find the ftp-file.script file.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 20:51:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600528#M11524</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2014-09-03T20:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to ftp single file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600546#M11525</link>
      <description>Yes both the files are in the same folder....</description>
      <pubDate>Wed, 03 Sep 2014 21:12:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600546#M11525</guid>
      <dc:creator>Vishal_1980</dc:creator>
      <dc:date>2014-09-03T21:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to ftp single file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600548#M11526</link>
      <description>Hi Patrick,&lt;BR /&gt;&lt;BR /&gt;When i run the batch file i got the below error...&lt;BR /&gt;&lt;BR /&gt;C:\Users\VPatankar\Desktop&amp;gt;ftp -i -s:ftp-fil&lt;BR /&gt;ftp&amp;gt; open srv0536&lt;BR /&gt;Connected to srv0536.netaspx.com.&lt;BR /&gt;220 srv0536 FTP server (Version 4.2 Mon Dec&lt;BR /&gt;User (srv0536.netaspx.com:(none)):&lt;BR /&gt;500 'USER ': command not understood.&lt;BR /&gt;Login failed.&lt;BR /&gt;ftp&amp;gt; userid "kvaze"&lt;BR /&gt;Invalid command.&lt;BR /&gt;ftp&amp;gt;&lt;BR /&gt;ftp&amp;gt; password "passw0rd"&lt;BR /&gt;Invalid command.&lt;BR /&gt;ftp&amp;gt;&lt;BR /&gt;ftp&amp;gt; lcd /D "D:\MSCM\DSSO"&lt;BR /&gt;lcd local directory.&lt;BR /&gt;ftp&amp;gt;&lt;BR /&gt;ftp&amp;gt; bin&lt;BR /&gt;200 Type set to I.&lt;BR /&gt;ftp&amp;gt; prompt&lt;BR /&gt;Interactive mode On .&lt;BR /&gt;ftp&amp;gt; cd /law/c123da/gen/perms_files&lt;BR /&gt;530 Please login with USER and PASS.&lt;BR /&gt;ftp&amp;gt; pwd&lt;BR /&gt;530 Please login with USER and PASS.&lt;BR /&gt;ftp&amp;gt; dir&lt;BR /&gt;530 Please login with USER and PASS.&lt;BR /&gt;530 Please login with USER and PASS.</description>
      <pubDate>Wed, 03 Sep 2014 21:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600548#M11526</guid>
      <dc:creator>Vishal_1980</dc:creator>
      <dc:date>2014-09-03T21:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to ftp single file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600550#M11527</link>
      <description>&lt;P&gt;In my example the lines with userid and password are the actual userid and password.&amp;nbsp; You do NOT specify "user userid" or "password passw0rd" you just specify kvaze and passw0rd on each line.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 21:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600550#M11527</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2014-09-03T21:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to ftp single file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600562#M11528</link>
      <description>After changing the parameters as per you said , below is the output of the .bat file..&lt;BR /&gt;C:\Users\VPatankar\Desktop&amp;gt;ftp -i -s:ftp-fil&lt;BR /&gt;ftp&amp;gt; open srv0536&lt;BR /&gt;Connected to srv0536.netaspx.com.&lt;BR /&gt;220 srv0536 FTP server (Version 4.2 Mon Dec&lt;BR /&gt;User (srv0536.netaspx.com:(none)):&lt;BR /&gt;500 'USER ': command not understood.&lt;BR /&gt;Login failed.&lt;BR /&gt;ftp&amp;gt; kvaze&lt;BR /&gt;Invalid command.&lt;BR /&gt;ftp&amp;gt;&lt;BR /&gt;ftp&amp;gt; passw0rd&lt;BR /&gt;Invalid command.&lt;BR /&gt;ftp&amp;gt;&lt;BR /&gt;ftp&amp;gt; lcd /D "D:\MSCM\DSSO"&lt;BR /&gt;lcd local directory.&lt;BR /&gt;ftp&amp;gt;&lt;BR /&gt;ftp&amp;gt; bin&lt;BR /&gt;200 Type set to I.&lt;BR /&gt;ftp&amp;gt; prompt&lt;BR /&gt;Interactive mode On .&lt;BR /&gt;ftp&amp;gt; cd /law/c123da/gen/perms_files&lt;BR /&gt;530 Please login with USER and PASS.&lt;BR /&gt;ftp&amp;gt; pwd&lt;BR /&gt;530 Please login with USER and PASS.&lt;BR /&gt;ftp&amp;gt; dir&lt;BR /&gt;530 Please login with USER and PASS.&lt;BR /&gt;530 Please login with USER and PASS.&lt;BR /&gt;Please suggest...</description>
      <pubDate>Wed, 03 Sep 2014 21:37:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600562#M11528</guid>
      <dc:creator>Vishal_1980</dc:creator>
      <dc:date>2014-09-03T21:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to ftp single file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600568#M11529</link>
      <description>Also after login to UNIX i need to select the environment ,&lt;BR /&gt;below is the screen shot for the same...&lt;BR /&gt;Choose Environment&lt;BR /&gt;------------------&lt;BR /&gt;0. c0gart&lt;BR /&gt;1. c0tyfs&lt;BR /&gt;2. c0artd&lt;BR /&gt;3. c11eda&lt;BR /&gt;4. c10cfda&lt;BR /&gt;&lt;BR /&gt;s. aspx Shell&lt;BR /&gt;l. View Customer names&lt;BR /&gt;x. Logout&lt;BR /&gt;&lt;BR /&gt;Choice? :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;here i have to give the option</description>
      <pubDate>Wed, 03 Sep 2014 21:43:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/need-script-to-ftp-single-file/m-p/6600568#M11529</guid>
      <dc:creator>Vishal_1980</dc:creator>
      <dc:date>2014-09-03T21:43:31Z</dc:date>
    </item>
  </channel>
</rss>

