Deleting files from Windows Share

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.

Deleting files from Windows Share

Postby gmoisant » Tue Apr 15, 2014 2:25 pm

How do I delete files from a windows share using a filelist variable?
Posts: 5
Joined: Thu Sep 27, 2012 12:09 pm

Re: Deleting files from Windows Share

Postby Support_Rick » Tue Apr 15, 2014 3:13 pm

Create your Windows Share File List Variable:

Code: Select all
      <createFileList label="Create Filelist" fileListVariable="MyFileList" version="1.0">
         <fileset dir="\\MyServer\MySubFolder\MyFolderLocation\" recursive="false">
               <include pattern="*.txt" caseSensitive="false" />

Then, execute the Delete Task with the variable created in the CreateFileList above:

Code: Select all
      <delete label="Delete My Original Files" inputFilesVariable="${MyFileList}" version="1.0"/>

Keep in mind, the FileList Variable could be created via a Monitor, Copy, Rename, Delete, FTP,and several other ways. Not just by a CreateFileList.
Rick Elliott
Sr. Product Specialist
(402) 944.4242
(800) 949-4696
Support Specialist
Posts: 424
Joined: Tue Jul 17, 2012 2:12 pm

Return to Community Forum

Who is online

Users browsing this forum: No registered users and 1 guest