Pages

Search This Blog

Wednesday, October 7, 2015

[scripting] Alternate for touch command in Windows for Unix

I was working on a requirement where I need to process Informatica workflow from a source file. But the issue was that file might exist and in some case it might get missing. So was searching for replacement of touch command in unix and here is the code:

$PMSourceFileDir\$$SOURCE_FILENAME --- is your file path

type nul >>$PMSourceFileDir\$$SOURCE_FILENAME & copy $PMSourceFileDir\$$SOURCE_FILENAME +,,

 

1 comment:

Tejuteju said...

Really nice blog post. provided a helpful information. I hope that you will post more updates like thisInformatica Online Course Bangalore