cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All,

I'm new to Data Services and need some help in creating a script that will sit at the end of a workflow which will move an excel file (.xls) from one folder location to an archive folder. The file move needs to complete so that when the workflow is executed the following day, the dataflow before the script picks up the new file (hence the wildcard * in the file name)


exec('cmd.exe','Move \\FAS2050N1\Groups\Reports\Business Intelligence\Excel Based Feeds\AACC\Warehouse Feed\Daily CDN Export*.xls \\FAS2050N1\Groups\Reports\Business Intelligence\Excel Based Feeds\AACC\Warehouse Feed\Archive',1);

The workflow validates and executes but I get error 50306.

I don't want to go down the route of creating a .bat file on the server

Kind Regards
Wardie

0 Likes
View Entire Topic
Former Member
0 Likes

Has anyone successfully setup a file move script before? If so, could you send me step by step instructions with screenshots please?

Your help would be much appreciated

Kind Regards

Wardie

Former Member
0 Likes

Below shell script should help.

$Variable = exec('sh',' -c "mv <FilePath>/<FileName> <ArchicePath>"',8);