user command
Chris Rendall
crendall at teamind.com
Wed Oct 7 07:28:44 PDT 2009
I looked at opendir() but it didn't seem to work. I was getting a -22 after executing the opendir() command.
I think the problem is the directory I'm trying to open has a space in it. When I used opendir() to a path that doesn't have a space it worked correctly using @dirlist_file in the listbox. The directory name is "Filler Metal". When I used "filler~1" it worked correctly.
Thanks for pointing me in the right direction using @dirlist_filename!
Chris
-----Original Message-----
From: John Esak [mailto:john at valar.com]
Sent: Tuesday, October 06, 2009 6:11 PM
To: Chris Rendall; 'filePro'
Subject: RE: user command
Chris,
Are you saying you *can't* for some reason use the proper command to get the
list of files in a directory? Is this Windows share not visible to the
running filePro or something?
Why aren't you using "opendir() which automatically fills the @dirlist_file*
system mainttained arrays... Which can be put on the screen with listbox as
any other array.
Also, I thought you read this list. Not more than a few weeks ago, the exact
same question you just asked was asked and answered. Use opendir().
Now, if there is some reason you are constrained to use the USER command,
then I can't help. It's like using a hammer when you need a screwdriver.
Then: opdndir( exp-of-wildcard-to-search-for ,
exp=for-directory-to-open )
Then: x=listbox(@dirlist_filename)
Where x will equal the number of files found.
Good luck.
John
> -----Original Message-----
> From: filepro-list-bounces+john=valar.com at lists.celestial.com
> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.co
m] On Behalf Of Chris Rendall
> Sent: Tuesday, October 06, 2009 6:17 PM
> To: filePro (filepro-list at lists.celestial.com)
> Subject: user command
>
> I'm using the "user" command to run a script in Linux to get
> a list of files in a directory on a Windows share. Is there
> a way to use a parameter with the "user" command? The name
> of the directory I want to get the list of files from changes
> depending on the job number.
>
> I've done this before with the "user" command, but in that
> program I'm always looking in the same directory to get the
> list of names to display in the listbox.
>
> Thanks,
> Chris
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
More information about the Filepro-list
mailing list