<?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: Load Files From SFTP Folder in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073613#M358365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anjali thanks for help me,&lt;/P&gt;&lt;P&gt;Sure actually we have WinSCP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you share the script please? , best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just i have this information:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="WinSCP.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171800_WinSCP.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jul 2017 18:57:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-07-28T18:57:04Z</dc:date>
    <item>
      <title>Load Files From SFTP Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073607#M358359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;I want to download many files from SFTP Server. The o&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;nly information I have handy is :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;SPAN style="line-height: 1.5em;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;URL of that SFTP Folder ,a username and a password to get into that .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I tried to use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PuTTY as well as suggested in some post .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt; After downloading &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-weight: inherit; font-style: inherit;"&gt;PuTTY, I launched &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;PuTTY.exe and the following window is coming :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-1014422-120840/Putty Config.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="Putty Config.png" class="jive-image image-1" height="460" src="/legacyfs/online/120853_Putty Config.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="819" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Could anyone please suggest further steps to connect to the same&amp;nbsp; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Any help will be appreciated &lt;/SPAN&gt;.Thanks in advance .&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 09:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073607#M358359</guid>
      <dc:creator>anjali0108</dc:creator>
      <dc:date>2016-04-07T09:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load Files From SFTP Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073608#M358360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see how putty is going to help you. That's a tool for starting an interactive command shell on the remote machine. You probably want to use something like WinSCP instead. Anyway, this all has nothing to do with Qlikview. I suggest you find a tutorial on the internet with your favorite web search engine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 11:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073608#M358360</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-07T11:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Load Files From SFTP Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073609#M358361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the free connector with Qlik Web Connectors and then enumerate around the files on the FTP server and save them locally, where you can then load them into QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This article has details on the free connectors:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.quickintelligence.co.uk/free-qlik-web-connectors/" title="https://www.quickintelligence.co.uk/free-qlik-web-connectors/"&gt;https://www.quickintelligence.co.uk/free-qlik-web-connectors/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 14:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073609#M358361</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2017-07-14T14:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Load Files From SFTP Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073610#M358362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anjali Actually i have this problem how to resolve this? can you help me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 20:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073610#M358362</guid>
      <dc:creator />
      <dc:date>2017-07-27T20:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Load Files From SFTP Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073611#M358363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I mentioned, just download and install the Qlik Web Connectors, put your SFTP settings into there, create a script to download the file list, loop around this to get each file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get a list of files using this expression (you will need to set the variables first):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp_Files:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; Name as ftpName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:5555/data?connectorID=FileTransferConnector&amp;amp;table=SFTPListFilesAndFolders&amp;amp;host=$(vServer)&amp;amp;port=22&amp;amp;userName=$(vUserName)&amp;amp;password=$(vPassword)&amp;amp;remoteDirectory=$(vSourceFolder)&amp;amp;appID=" rel="nofollow" target="_blank"&gt;http://localhost:5555/data?connectorID=FileTransferConnector&amp;amp;table=SFTPListFilesAndFolders&amp;amp;host=$(vServer)&amp;amp;port=22&amp;amp;userName=$(vUserName)&amp;amp;password=$(vPassword)&amp;amp;remoteDirectory=$(vSourceFolder)&amp;amp;appID=&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(qvx)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE IsDirectory = 'False'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also download file size and age etc. using this query (replace Name as ftpName with * to get the full table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then enumerate around the files, downloading each one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for iFile = 0 to NoOfRows('Temp_Files') -1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vSourceFile = Peek('ftpName', iFile, 'Temp_Files');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Results:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1 as ResultCount,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'$(vServer)' as Server,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'$(vSourceFile)' as File,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Status as Status,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FileCount as Count&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:5555/data?connectorID=FileTransferConnector&amp;amp;table=SFTPDownload&amp;amp;host=$(vServer)&amp;amp;port=22&amp;amp;userName=$(vUserName)&amp;amp;password=$(vPassword)&amp;amp;remotePath=$(vSourceFolder)$(vSourceFile)&amp;amp;targetDirectory=$(vFTPOutput)&amp;amp;appID=" rel="nofollow" target="_blank"&gt;http://localhost:5555/data?connectorID=FileTransferConnector&amp;amp;table=SFTPDownload&amp;amp;host=$(vServer)&amp;amp;port=22&amp;amp;userName=$(vUserName)&amp;amp;password=$(vPassword)&amp;amp;remotePath=$(vSourceFolder)$(vSourceFile)&amp;amp;targetDirectory=$(vFTPOutput)&amp;amp;appID=&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(qvx)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You will need to URL Encode your file paths.&amp;nbsp; You can either do this manually, or use this function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sub Encode(vEncodeMe, vEncoded)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vEncoded = replace(replace(replace(replace(replace(vEncodeMe, ':', '%3a'), '/', '%2f'), '?', '%3f'), '=', '%3d'), '\', '%5c');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is used like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Call Encode(vDocPath &amp;amp; vOutputRoot, vFTPOutput);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The GUI for Qlik Web Connectors will generate half of this code for you anyway, and you can simply copy and paste it into your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 07:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073611#M358363</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2017-07-28T07:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load Files From SFTP Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073612#M358364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved this problem by using WinSCP. I installed WinSCP and used a script to pull the files from SFTP Folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also ,,check whether you are able to ping the SFTP Url from the server where you want to pull the files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you want to proceed this way.I will share the script with you then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 07:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073612#M358364</guid>
      <dc:creator>anjali0108</dc:creator>
      <dc:date>2017-07-28T07:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Load Files From SFTP Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073613#M358365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anjali thanks for help me,&lt;/P&gt;&lt;P&gt;Sure actually we have WinSCP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you share the script please? , best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just i have this information:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="WinSCP.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171800_WinSCP.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 18:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073613#M358365</guid>
      <dc:creator />
      <dc:date>2017-07-28T18:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load Files From SFTP Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073614#M358366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;As I am not able to attach document here, I am sharing the steps below. Please make changes in the lines underlined below :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 20.0pt; text-decoration: underline;"&gt;STEP 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 20.0pt; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Install WinSCP in the same folder where you will keep the rest of your scripts and files for automatic execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="center" style="font-size: 13.3333px; text-align: center;"&gt;&lt;SPAN style="font-size: 20pt;"&gt;STEP 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="center" style="font-size: 13.3333px; text-align: center;"&gt;&lt;SPAN style="font-size: 20pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Follow the Steps to generate the private key:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="font-size: 13.3333px;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;Go to the folder where WinSCP is stored.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;Go to “..\WinSCP\PuTTY” and click on Putty Generator&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Click on generate :&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;4.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;Save private key &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;5.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;Click Yes&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;OL style="font-size: 13.3333px;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;6.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;Save the key in the same folder.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;7.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;Change the name of key in the following command&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;SPAN style="background: yellow;"&gt;-privatekey=""F:\PrivateKey.ppk""""&lt;/SPAN&gt; of .vbs file stored before.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 20.0pt; text-decoration: underline;"&gt;STEP 3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 20.0pt; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Store the following script in the same folder as “.vbs” file type and change the lines that are underlined in the below code with ur url,username ,password and putty key :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function SFTPDownload(byVal sLocalPath, byVal sRemotePath, byVal sRemoteFile)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oFTPScriptFSO = CreateObject("Scripting.FileSystemObject")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oFTPScriptShell = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sRemotePath = Trim(sRemotePath)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sLocalPath = Trim(sLocalPath)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sOriginalWorkingDirectory = oFTPScriptShell.CurrentDirectory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oFTPScriptShell.CurrentDirectory = sLocalPath&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFTPScript = sFTPScript &amp;amp; "option batch on" &amp;amp; vbCRLF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFTPScript = sFTPScript &amp;amp; "option confirm off"&amp;amp; vbCrLf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFTPScript = sFTPScript &amp;amp; "option transfer binary" &amp;amp; vbCrLf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFTPScript = sFTPScript &amp;amp; "open "&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN&gt;WRITE AS s&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="ftp://USERNAME:PASSWORD@SFTP" rel="nofollow" target="_blank"&gt;ftp://USERNAME:PASSWORD@SFTP&lt;/A&gt;&lt;SPAN&gt; URL&lt;/SPAN&gt;&lt;/SPAN&gt;":22 -&lt;SPAN style="text-decoration: underline;"&gt;privatekey=D:\Script\IngredionPrivateKey.ppk"&lt;/SPAN&gt; &amp;amp; vbCrLf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFTPScript = sFTPScript &amp;amp; "cd " &amp;amp; sRemotePath &amp;amp; vbCrLf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFTPScript = sFTPScript &amp;amp; "get " &amp;amp; sRemoteFile &amp;amp; vbCRLF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFTPScript = sFTPScript &amp;amp; "close" &amp;amp; vbCrLf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFTPScript = sFTPScript &amp;amp; "exit" &amp;amp; vbCrLf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFTPTemp = oFTPScriptShell.ExpandEnvironmentStrings("%TEMP%")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFTPTempFile = sFTPTemp &amp;amp; "\" &amp;amp; oFTPScriptFSO.GetTempName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Write the input file for the sftp command to a temporary file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oFTPScript = oFTPScriptFSO.CreateTextFile(sFTPTempFile, True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oFTPScript.WriteLine(sFTPScript)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oFTPScript.Close&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oFTPScript = Nothing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sCmd = """C:\Program Files (x86)\WinSCP\WinSCP.com"" -script=" &amp;amp; sFTPTempFile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oFTPScriptShell.run sCmd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wscript.Sleep 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Get rid of temp file used for input to sftp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oFTPScriptFSO.DeleteFile(sFTPTempFile)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oFTPScriptFSO = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oFTPScriptShell = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; Dim myResult&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myResult = SFTPDownload("&lt;SPAN style="text-decoration: underline;"&gt;COPY PATH OF FOLDER WHERE YOU WANT TO STORE THE FILES&lt;/SPAN&gt;", "/", "*")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="center" style="text-align: center;"&gt; &lt;SPAN style="font-size: 20.0pt; text-decoration: underline;"&gt;STEP 4:&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 20.0pt; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Run the .vbs file and all the files will come in the folder you have specified.You can use a .bat file to run the .vbs script like shown below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;@echo off&lt;/P&gt;&lt;P&gt;pushd %~dp0&lt;/P&gt;&lt;P&gt;cscript DownloadSFTPFiles.vbs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 05:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073614#M358366</guid>
      <dc:creator>anjali0108</dc:creator>
      <dc:date>2017-07-31T05:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Load Files From SFTP Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073615#M358367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to know if the above solution help you.Do let me know if you were looking for something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 06:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Files-From-SFTP-Folder/m-p/1073615#M358367</guid>
      <dc:creator>anjali0108</dc:creator>
      <dc:date>2017-08-03T06:10:02Z</dc:date>
    </item>
  </channel>
</rss>

