#1 2012-06-02 18:24:46

ectl_mun
Member
Registered: 2012-04-10
Posts: 16

TSystem - How to handle ""

Hello All,

Im working on TSystem component to  send the command to windows CMD to check number of files in a directory.

My Syntax:

"cmd /C cd C:/Project/Project Mizuho/POC/Test Data & cmd /C DIR /A-D /B | FIND /C /V """

But im having error : Syntax error on token """", delete this token

Can anyone please help me on how to replace the "" which are required for the cmd FIND to fit it?

THanks a lot!

Offline

#2 2012-06-04 04:30:36

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: TSystem - How to handle ""

Hi

Because this command is a String in Talend job. You have to handle it with '\'.
"cmd /C cd C:/Project/Project Mizuho/POC/Test Data & cmd /C DIR /A-D /B | FIND /C /V \"\""

Hope this will help you.

Regards,
Pedro


Only Paranoid Survive.

Offline

Board footer

Powered by FluxBB