The FS service doesn't provide any information on if an entry is hidden or 
not, so you can't specify not to list hidden entries using the FS LIST 
DIRECTORY request.  You could open a feature request for this capability.

Instead, you can use a PROCESS START request to run a Windows dir request 
(but you'd have to parse the result).  For example: 

STAF local PROCESS START SHELL COMMAND "dir /A:D D:\Work\staf\cases" 
RETURNSTDOUT STDERRTOSTDOUT WAIT

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347




"Sandy Young" <[EMAIL PROTECTED]> 
11/05/2008 09:24 PM

To
staf-users@lists.sourceforge.net
cc

Subject
[staf-users] How to ignore hidden directory/file on windows when use fs 
service?






Hi,all:

I want to list all directories/files except hidden entries using fs 
service which command like below:

staf local fs list directory D:\Work\staf\cases type d

How can I modify that command to meet my need?

Thanks,
Homer
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's 
challenge
Build the coolest Linux based applications with Moblin SDK & win great 
prizes
Grand prize is a trip for two to an Open Source event anywhere in the 
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to