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?
gmoisant
 
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">
            <wildcardFilter>
               <include pattern="*.txt" caseSensitive="false" />
            </wildcardFilter>
         </fileset>
      </createFileList>


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_Rick
Support Specialist
 
Posts: 196
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