Page 1 of 1

Create an empty .end file

Posted: Thu Jun 16, 2016 12:00 pm
by Iker_G
Hi all,

Hope you can help me out with this.

I'm fetching a file from a third party (let's call it ABC.dat) and once I got the file, I need to create a new and empty file called ABC.end. That's all, as simple as that.

The thing is, I cannot find any option/method to create a new file and give it the name & extension I want.

How can I do it?

Thanks very much for your help!

Iker

Re: Create an empty .end file

Posted: Thu Jun 16, 2016 3:01 pm
by Support_Rick
Look at the PRINT task .. and then go to the Advanced Tab. Give the name of the file you want to create. Anything in the Text Box would be printed to that file.

Re: Create an empty .end file

Posted: Fri Jun 17, 2016 4:56 am
by Iker_G
Awesome! Thanks for the quick reply.

I've also managed to do it using an "Execute Native Command" task.
Setting the 'executable' option to '/bin/touch' and adding an argument with the name I want for the file, then it creates the file within the working directory we specify.

Does anyone else here have a different option to do it?

Cheers!