<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'getting file names in a directory using java script lang.' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'getting file names in a directory using java script lang.' posted on the 'JavaScript' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sun, 26 May 2013 00:38:26 -0700</pubDate>
    <lastBuildDate>Sun, 26 May 2013 00:38:26 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>getting file names in a directory using java script lang.</title>
      <link>http://www.programmersheaven.com/mb/java-script/206698/206698/getting-file-names-in-a-directory-using-java-script-lang/</link>
      <description>Hi;&lt;br /&gt;
    I am trying to traverse in a directory in a local machine, and get names of all the files there. Could you please help me?&lt;br /&gt;
    I am waiting to hearing from you.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/206698/206698/getting-file-names-in-a-directory-using-java-script-lang/</guid>
      <pubDate>Wed, 13 Aug 2003 07:49:53 -0700</pubDate>
      <category>JavaScript</category>
    </item>
    <item>
      <title>Re: getting file names in a directory using java script lang.</title>
      <link>http://www.programmersheaven.com/mb/java-script/206698/206754/re-getting-file-names-in-a-directory-using-java-script-lang/#206754</link>
      <description>: Hi;&lt;br /&gt;
:     I am trying to traverse in a directory in a local machine, and get names of all the files there. Could you please help me?&lt;br /&gt;
:     I am waiting to hearing from you.&lt;br /&gt;
: &lt;br /&gt;
JS can't do it. It's been designed to interact as far as the browser only for security reasons.  If it could, how would you like someone to write a script that reads your entire drive and sent it back to the owner of the web page?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----------------&lt;br /&gt;
Walt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/206698/206754/re-getting-file-names-in-a-directory-using-java-script-lang/#206754</guid>
      <pubDate>Wed, 13 Aug 2003 16:55:02 -0700</pubDate>
      <category>JavaScript</category>
    </item>
    <item>
      <title>Re: getting file names in a directory using java script lang.</title>
      <link>http://www.programmersheaven.com/mb/java-script/206698/206786/re-getting-file-names-in-a-directory-using-java-script-lang/#206786</link>
      <description>Hi WaltP;&lt;br /&gt;
   In fact, the job that I am trying to do: There a lot of files in a directory in name plus date format like "volumes1302030947". 13 is the day, 02 is the month, 03 is the yaer, 09 is the hour and 47 is the minutes. I have designed a html page. The user enters the date criterias(only day, month and year), and the files appropriate to them will be listed. And the user than, will select one of them. And the file will be opened. Here, I anyway authorize the user, because the machine is mine. And perhaps I may not publish the pages in the internet, and I can use them myself. Can I not access my machine? &lt;br /&gt;
   I hope I could understand. Do you have any idea?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/206698/206786/re-getting-file-names-in-a-directory-using-java-script-lang/#206786</guid>
      <pubDate>Wed, 13 Aug 2003 23:40:28 -0700</pubDate>
      <category>JavaScript</category>
    </item>
    <item>
      <title>Re: getting file names in a directory using java script lang.</title>
      <link>http://www.programmersheaven.com/mb/java-script/206698/206986/re-getting-file-names-in-a-directory-using-java-script-lang/#206986</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by WaltP at  2003-8-14 21:12:26&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: Hi WaltP;&lt;br /&gt;
:    In fact, the job that I am trying to do: There a lot of files in a directory in name plus date format like "volumes1302030947". 13 is the day, 02 is the month, 03 is the yaer, 09 is the hour and 47 is the minutes. I have designed a html page. The user enters the date criterias(only day, month and year), and the files appropriate to them will be listed. And the user than, will select one of them. And the file will be opened. Here, I anyway authorize the user, because the machine is mine. And perhaps I may not publish the pages in the internet, and I can use them myself. Can I not access my machine? &lt;br /&gt;
:    I hope I could understand. Do you have any idea?&lt;br /&gt;
 &lt;br /&gt;
I feel your pain.  As I said, for security, JavaScript cannot read the disk. The only possibility I can think of would be to create a file that you can include in your JS, maybe assigning each filename to an array, but this file will have to be recreated as new files are added.&lt;br /&gt;
&lt;br /&gt;
The other option is to use PHP, ASP, or Perl.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----------------&lt;br /&gt;
Walt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/206698/206986/re-getting-file-names-in-a-directory-using-java-script-lang/#206986</guid>
      <pubDate>Thu, 14 Aug 2003 21:10:25 -0700</pubDate>
      <category>JavaScript</category>
    </item>
    <item>
      <title>Re: getting file names in a directory using java script lang.</title>
      <link>http://www.programmersheaven.com/mb/java-script/206698/206988/re-getting-file-names-in-a-directory-using-java-script-lang/#206988</link>
      <description>Thank you, Walt.&lt;br /&gt;
   I have accomplished it using VBScript. See you...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/206698/206988/re-getting-file-names-in-a-directory-using-java-script-lang/#206988</guid>
      <pubDate>Thu, 14 Aug 2003 22:38:47 -0700</pubDate>
      <category>JavaScript</category>
    </item>
  </channel>
</rss>