Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 11 MAR 2009 11:03:15PM Chris Meyer wrote:

What is the InitDir format when the path contains spaces e.g

InitDir 'c:\temp\data sheets'

I have tried Quote('c:\temp\data sheets') but that does not return the directory list from dirList() either.

TIA

Chris


At 12 MAR 2009 03:36AM Stefano Cavaglieri wrote:

Chris,

Try appending a file/format mask to the name of the directory. For instance, if you want to get a list of all files in the "c:\temp\data sheets" directory you would enter:

InitDir "c:\temp\data sheets\*.*"

Hope it helps,

Stefano


At 12 MAR 2009 03:57AM Chris Meyer wrote:

Sorry, the folder I was attaching was empty. DirList() works fine as long as the directory is not empty.

Thanks

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/4844b7f7b8b20fdb852575770010c735.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1