dbTalk Databases Forums  

Re: View list of file names, select for import

comp.databases.filemaker comp.databases.filemaker


Discuss Re: View list of file names, select for import in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: View list of file names, select for import - 09-28-2009 , 11:59 AM






Martin Trautmann wrote:
Quote:
I want a list of all files within this directory, including its creation
date, file size and file name.

On the Mac I would just start a proper shell script and import this
result. Then I could mark all matching files (which were already
imported before) and present a list of files which were not yet
imported.
On WIndows you can also just run a proper shell command (dir > filename)
and import the result.

You can also use a plugin such as Troi File, an FTP plugin (if you
already happen to have one) or the free Moo plugin (mooplug.com)

Reply With Quote
  #2  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: View list of file names, select for import - 09-28-2009 , 02:31 PM






Martin Trautmann wrote:
Quote:
On Mon, 28 Sep 2009 09:59:56 -0700, Howard Schlossberg wrote:
Martin Trautmann wrote:
I want a list of all files within this directory, including its creation
date, file size and file name.

On the Mac I would just start a proper shell script and import this
result. Then I could mark all matching files (which were already
imported before) and present a list of files which were not yet
imported.
On WIndows you can also just run a proper shell command (dir > filename)
and import the result.

And I can call this script directly from within a FMP script?
Yes, using the Send Event script step, something like this (though you
may need more flags to get the entire list rather than just one screen's
worth; you'll have to do some testing):

"cmd dir c:\TheFolder\TheSubFolder\*.* > c:\ExportedDir.txt"

Reply With Quote
  #3  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: View list of file names, select for import - 09-28-2009 , 02:33 PM



Howard Schlossberg wrote:
Quote:
Martin Trautmann wrote:
On Mon, 28 Sep 2009 09:59:56 -0700, Howard Schlossberg wrote:
Martin Trautmann wrote:
I want a list of all files within this directory, including its
creation
date, file size and file name.

On the Mac I would just start a proper shell script and import this
result. Then I could mark all matching files (which were already
imported before) and present a list of files which were not yet
imported.
On WIndows you can also just run a proper shell command (dir
filename) and import the result.

And I can call this script directly from within a FMP script?

Yes, using the Send Event script step, something like this (though you
may need more flags to get the entire list rather than just one screen's
worth; you'll have to do some testing):

"cmd dir c:\TheFolder\TheSubFolder\*.* > c:\ExportedDir.txt"
Oops -- you should include either a /c or /k flag after the dir,
something like:

"cmd /k dir c:\TheFolder\TheSubFolder\*.* > c:\ExportedDir.txt"

/k will leave the CMD shell window open after it runs, whereas /c will
close it after it's done.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.