dbTalk Databases Forums  

List PC directory contents

comp.databases.pick comp.databases.pick


Discuss List PC directory contents in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bryan_welle@hotmail.com
 
Posts: n/a

Default List PC directory contents - 05-27-2005 , 10:50 AM






Does anyone know of a method to list a PC's directory contents from a
Pick program? I have looked at all of the Wintegrate host routines and
I do not see anything that will work. We run jBase on op of Redhat
Linux.

Thanks


Reply With Quote
  #2  
Old   
Richard Wilson
 
Posts: n/a

Default Re: List PC directory contents - 05-27-2005 , 10:58 AM






I havent played with jbase in awhile but perhaps you can shell out and do
something like the following (windows/dos version below)

PERFORM 'DIR /B/A-D-S-H ':PATH:' > DIR_LIST.TXT'

and then read DIR_LIST.TXT

Rich


bryan_welle (AT) hotmail (DOT) com wrote:
Quote:
Does anyone know of a method to list a PC's directory contents from a
Pick program? I have looked at all of the Wintegrate host routines and
I do not see anything that will work. We run jBase on op of Redhat
Linux.

Thanks



Reply With Quote
  #3  
Old   
Rick
 
Posts: n/a

Default Re: List PC directory contents - 05-27-2005 , 11:02 AM



You can EXECUTE CHAR(255):"k":"ld whatever" CAPTURING STUFF

Rick
Drexel Mgt.


Reply With Quote
  #4  
Old   
Simon Verona
 
Posts: n/a

Default Re: List PC directory contents - 05-27-2005 , 11:04 AM



in jBase just execute the requitre operating system command..


eg EXECUTE CHAR(255):'sls -la /usr/mydirectory'

The char(255):'s makes it use the normal unix shell to run the command
rather than jBases jShell.

You can go further.. You could capture the result for further processing.

Or you could create a jBase select list by code such as the following:

OPEN '/usr/mydir' TO MyDir ELSE STOP 201,'/usr/mydir'
SELECT MyDir TO MyDirList
LOOP WHILE READNEXT FileName FROM MyDirList DO
..... insert code here.
REPEAT

Hope this gives some pointers

Regards
Simon
<bryan_welle (AT) hotmail (DOT) com> wrote

Quote:
Does anyone know of a method to list a PC's directory contents from a
Pick program? I have looked at all of the Wintegrate host routines and
I do not see anything that will work. We run jBase on op of Redhat
Linux.

Thanks




Reply With Quote
  #5  
Old   
Rick
 
Posts: n/a

Default Re: List PC directory contents - 05-27-2005 , 11:06 AM



BTW, you should have really posted this in the jBASE Goggle list:

http://groups-beta.google.com/group/jBASE

Rick Weiser
Drexel Mgt


Reply With Quote
  #6  
Old   
Ian Renfrew
 
Posts: n/a

Default Re: List PC directory contents - 05-27-2005 , 12:08 PM



Hi Bryan,

Take a look at the wIntegrate script: wIntegrate/Example/Script/dirlist.wis
The script comments say: * Script to write list of files and directories to
text file

This may do the trick for you.

Regards, Ian Renfrew

<bryan_welle (AT) hotmail (DOT) com> wrote

Quote:
Does anyone know of a method to list a PC's directory contents from a
Pick program? I have looked at all of the Wintegrate host routines and
I do not see anything that will work. We run jBase on op of Redhat
Linux.

Thanks




Reply With Quote
  #7  
Old   
Simon Verona
 
Posts: n/a

Default Re: List PC directory contents - 05-27-2005 , 01:00 PM



oooo I "goggle" at google ! <G>

Simon
"Rick" <rweiser (AT) comcast (DOT) net> wrote

Quote:
BTW, you should have really posted this in the jBASE Goggle list:

http://groups-beta.google.com/group/jBASE

Rick Weiser
Drexel Mgt




Reply With Quote
  #8  
Old   
hillhaven6061@msn.com
 
Posts: n/a

Default Re: List PC directory contents - 05-27-2005 , 01:49 PM





bryan_welle (AT) hotmail (DOT) com wrote:
Quote:
Does anyone know of a method to list a PC's directory contents from a
Pick program? I have looked at all of the Wintegrate host routines and
I do not see anything that will work. We run jBase on op of Redhat
Linux.

Thanks


wIntegrate has a function that I call from Universe that will list the
files within a directory. Look at the "Host Subroutines Reference"
manual for the function WIN.PCLIST.



Reply With Quote
  #9  
Old   
hillhaven6061@msn.com
 
Posts: n/a

Default Re: List PC directory contents - 05-27-2005 , 01:50 PM





bryan_welle (AT) hotmail (DOT) com wrote:
Quote:
Does anyone know of a method to list a PC's directory contents from a
Pick program? I have looked at all of the Wintegrate host routines and
I do not see anything that will work. We run jBase on op of Redhat
Linux.

Thanks


wIntegrate has a function that I call from Universe that will list the
files within a directory. Look at the "Host Subroutines Reference"
manual for the function WIN.PCLIST.



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.