Automic Workload Automation

Expand all | Collapse all

How to Delete an txt file located in a windows server using a job.

Jump to Best Answer
  • 1.  How to Delete an txt file located in a windows server using a job.

    Posted 05-23-2018 02:13 AM

    Hi All,

     

    I am trying to Delete an Trigger txt file from an specified path in a windows server after its purpose gets over.

    Is it possible to delete the job from UC4 end itself using the Windows Jobs Type.

     

    Please note that i was earlier able to Achive this Scenario for the UNIX job type as below,

     

    echo "Delete trigger file"
    rm -f /indata/SourceFiles/Test/sample_trigger.txt

     

    But i am not able to use this with windows type. Kindly suggest some options

     

     

    #caautomicworkloadautomation



  • 2.  Re: How to Delete an txt file located in a windows server using a job.

    Posted 05-23-2018 02:23 AM

    Moved to CA Automic WA community.



  • 3.  Re: How to Delete an txt file located in a windows server using a job.
    Best Answer

    Posted 05-23-2018 02:58 AM

    Mh, you could have googled that in a split second, but anyway ...

     

    del /Q /F <PathtoFileYouWantToDelete>



  • 4.  Re: How to Delete an txt file located in a windows server using a job.

    Posted 05-23-2018 03:20 AM

    Thanks Matthias