Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
amit_saini
Master III
Master III

Script Help ???

Hi Folks ,

I'm having script like below:

Set vPlant = '*';  (For reading all the plants)

Set vQVD = '..\..\QV_QVD';

Set vSRC = '..\..\QV_SRC';

Set vQVDGlobal = '..\..\QV_QVD';

Set vQVDGlobal = '..\..\QV_QVD\Global';

execute cmd.exe /C copy  $(vQVD)\*.* $(vQVDGlobal)\*.* /y;

set vQVD = $(vQVDGlobal);

$(Include=..\2_scaq_datamodel_script.qvs)

EXIT Script;

Here in this script instead of reading all plants (Set vPlant = '*';) , I want to read only few of them.

I tried with this:

for each vPlant in 'Plant1','Plant2' but it's not working.

Any suggestion how to achieve this.

Thanks,

AS

4 Replies
tresesco
MVP
MVP

Where are you using the variable vPlant ? How did you try the for each statement?

amit_saini
Master III
Master III
Author

I'm using vPlant in my include statement file "2_scaq_datamodel_script.qvs"

Thanks,

AS

amit_saini
Master III
Master III
Author

This file 2_scaq_datamodel_script.qvs carrying common script for all plants that's why I m calling this an include one.

Thanks,

AS

amit_saini
Master III
Master III
Author

Any Suggestion????

Thanks,

AS