To get around this you could run the attrib/chmod command against the file or 
grouping of files, then just use the normal fs command to remove the file....

c:\dev\playpen\mi\bin>staf local fs delete entry c:\test\ recurse confirm
Error submitting request, RC: 20
Additional info
---------------
Name               RC OS RC
------------------ -- ------
c:\test\foobar.txt 10 5
c:\test            50 <None>


c:\dev\playpen\mi\bin>staf local process start shell command "attrib -R 
c:\test\foobar.txt" WAIT STDERRTOSTDOUT RETURNSTDOUT
Response
--------
{
  Return Code: 0
  Key        : <None>
  Files      : [
    {
      Return Code: 0
      Data       :
    }
  ]
}

c:\dev\playpen\mi\bin>staf local fs delete entry c:\test\ recurse confirm
Response
--------


-george




From: Sharon Lucas [mailto:luc...@us.ibm.com]
Sent: Thursday, June 18, 2009 1:59 PM
To: clayton neal
Cc: staf-users@lists.sourceforge.net
Subject: Re: [staf-users] FS delete on Windows


A STAF FS DELETE request cannot delete a file if the user that was logged on 
when STAFProc was started (e.g. the user that STAFProc is running as) does not 
have the right permissions to delete the file.

C:\>net helpmsg 5

Access is denied.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313


clayton neal <clayton_n...@yahoo.co.uk>

06/18/2009 12:47 PM

To

staf-users@lists.sourceforge.net

cc

Subject

[staf-users] FS delete on Windows








Hiya

Has anyone had problems using the FS DELETE command on Windows XP
It seems it wont delete a read-only file
It gives Base OS error = 5

But from windows explorer, these files can be deleted
Any clues?

The command i gave was:

STAF LOCAL FS DELETE ENTRY c:\mydir\ RECURSE CONFIRM

Regards

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to