Show url online directory files

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
disruptor
Posts: 1
Joined: Wed Oct 06, 2010 10:30 pm

Show url online directory files

Post by disruptor »

I found this Sub which works well listing all directory contents. But I cannot figure out how to make it work with online directories (URL's) . Do I need a system path? or some sort of conversion?

Code: Select all

Sub ShowFiles
  Dim NextFile As String
  Dim AllFiles As String
 
  AllFiles = ""
 'here is where I would like to change it from this....
  NextFile = Dir("C:\", 0)    

 'to this....
'NextFile = Dir("http://www.somewebsite.com/images/", 0) 
 
  While NextFile  <> ""
    AllFiles = AllFiles & Chr(13) &  NextFile 
    NextFile = Dir
  Wend
 
  MsgBox AllFiles
End Sub
thank you
OpenOffice 3.1 on Windows XP
B Marcelly
Volunteer
Posts: 1160
Joined: Mon Oct 08, 2007 1:26 am
Location: France, Paris area

Re: show url online directory files

Post by B Marcelly »

Hi,
There is no way to interrogate the internal structure of a web site (whatever the language).
Maybe this could work on a FTP site, provided you have read access right.
Bernard

OpenOffice.org 1.1.5 / Apache OpenOffice 4.1.1 / LibreOffice 5.0.5
MS-Windows 7 Home SP1
Post Reply