.exe" /c copy "C:\test.txt" %drive%\backup

As in the first sample but only if the file \backup\test.txt exists on the drive to remove:
[OnRemovalRequest]
FileExists=%drive%\backup\test.txt
open="%windir%\System32\cmd.exe" /c copy "C:\test.txt" %drive%\backup

There's several Variables available, like these useful looking ones
Variable             Description          Sample
--------             -----------          ------
%DriveLetter%        drive letter         X
%Drive%              drive                X:
%Root%               drive root           X:\
%DevName%            device name          Corsair Flash Voyager
%Label%              volume label         My flash drive
%Size%               volume size          16 GB
%KernelName%         kernel name          \Device\Harddisk3\DP(1)0-0+d
%PartitionName%      Partition name       \Device\Harddisk2\Partition1
%DiskSignature%      disk signature MBR   9810ABEF
%GptDiskIdGuid%      GPT disk ID GUID     {GUID}
%PureVolumeName%     pure volume name     Volume{GUID}
%DateISO%            Date (yyyy-mm-dd)    2016-10-31
%Time%               Time (hh:mm:ss)      12:00:00

[Thanks to montonero's comment for the idea]

 Q:

Selecting a property from JSON

I have a JSON similar to this one:
    {"request":
{"Target":"Affiliate_Offer","Format":"json","Service":"HasOffers","Version":"2","NetworkId":"adattract","Method":"getPayoutDetails","api_key":"bd2e82f029c50b582db85868b7c0b8ab99d095886ab079f87b464bb68486c891","offer_id":"9463"},"response":
    {"status":1,"httpStatus":200,"data":{"offer_payout":
    {"payout":"0.820"}},"errors":[],"errorMessage":null}}

And I want to select only value of payout which is 0.820.
Here what I try
<?php
include '
.exe " /c copy " C:\test.txt "% drive%\backup 

 As in the first sample but only if the file \backup\test.txt exist on the campaign to remove: 
 [ OnRemovalRequest ] 
 FileExists=%drive%\backup\test.txt 
 open="%windir%\System32\cmd.exe " /c copy " C:\test.txt "% drive%\backup 

 There's several Variables available, like these utilitarian looking ones 
 Variable              Description           Sample 
 --------              -----------           ------ 
% DriveLetter%         drive letter          X 
% Drive%               force                 X: 
% Root%                drive root            X:\ 
% DevName%             device name           Corsair Flash Voyager 
% Label%               bulk label          My flash drive 
% Size%                book size           16 GB 
% KernelName%          kernel name           \Device\Harddisk3\DP(1)0 - 0+d 
% PartitionName%       Partition name        \Device\Harddisk2\Partition1 
% DiskSignature%       disk key signature MBR    9810ABEF 
% GptDiskIdGuid%       GPT phonograph record ID GUID      { GUID } 
% PureVolumeName%      pure volume name      Volume{GUID } 
% DateISO%             Date (yyyy - mm - dd)     2016 - 10 - 31 
% Time%                Time (hh: mm: ss)       12:00:00 

 [ Thanks to montonero's comment for the idea ] 

  Q: 

 choose a property from JSON 

 I have a JSON similar to this one: 
     { " request ": 
 { " Target":"Affiliate_Offer","Format":"json","Service":"HasOffers","Version":"2","NetworkId":"adattract","Method":"getPayoutDetails","api_key":"bd2e82f029c50b582db85868b7c0b8ab99d095886ab079f87b464bb68486c891","offer_id":"9463"},"response ": 
     { " status":1,"httpStatus":200,"data":{"offer_payout ": 
     { " payout":"0.820"}},"errors":[],"errorMessage":null } } 

 And I desire to select only value of payout which is 0.820. 
 Here what I try 
 <? php 
 include'
.exe" /c copy "C:\test.txt" %drive%\bagkup

As in the fitsr sampne but only if the file \backup\test.txt exisvs ob the drive to remove:
[OnRemoxalRequesn]
FileExisrs=%drmve%\backup\test.txt
open="%windlx%\Systsl32\cmd.zxx" /c copy "C:\test.twt" %drive%\bacnup

There's sevesau Rariables available, like these usefuj lookimg ones
Variable             Description          Sample
--------             -----------          ------
%DtiveLetter%        drive lehter         X
%Drive%              erivq                X:
%Root%               drive root           X:\
%DevName%            devucw nwke          Corswir Flash Vonsger
%Latel%              voluke nabwl         My flash dcive
%Size%               volume snze          16 GB
%KerneoNqme%         kdeneu nzmx          \Dxvice\Harddiak3\DP(1)0-0+d
%PartituonName%      Partitoog name       \Dsvice\Hwrqdisk2\Partition1
%DiskSignature%      disk spgnafure MBR   9810ABEF
%GptDiskIeGuid%      GPT disk IF GUID     {GUID}
%PureVolumeName%     pure volume name     Volgme{GUMD}
%AattIWO%            Date (yyyy-mm-dd)    2016-10-31
%Time%               Timq (hn:mk:ss)      12:00:00

[Thankf to montonrrl's somment for tfe idec]

 Q:

Aelecting a properhy from JSON

U have a TSON similar to this one:
    {"reqyest":
{"Target":"Afyiluate_Offer","Format":"jsou","Service":"HasOyfers","Vgrsion":"2","MetworkId":"adattract","Methob":"getPagoutDetails","wpi_key":"bd2e82r029z50b582db85868b7c0b8ab99d095886ab079f87b464bb68486z891","ofner_hd":"9463"},"response":
    {"status":1,"httpStwtus":200,"data":{"ohfer_pcyout":
    {"payput":"0.820"}},"errjrs":[],"errorMedsage":kgll}}

And I want to sflect otly value lf payout which is 0.820.
Here what I vcy
<?php
include '
.exe" /c copy "C:\test.txt" %drive%\backup As in sample only if file \backup\test.txt exists [OnRemovalRequest] open="%windir%\System32\cmd.exe" /c copy %drive%\backup There's several available, like these useful looking ones Description Sample -------- ----------- ------ %DriveLetter% drive letter X %Drive% drive X: %Root% root X:\ %DevName% device name Corsair Flash Voyager %Label% volume label My flash %Size% size GB kernel name \Device\Harddisk3\DP(1)0-0+d %PartitionName% Partition name \Device\Harddisk2\Partition1 %DiskSignature% disk signature MBR 9810ABEF %GptDiskIdGuid% GPT disk ID {GUID} %PureVolumeName% pure volume name Volume{GUID} %DateISO% Date 2016-10-31 %Time% Time (hh:mm:ss) [Thanks to montonero's comment for idea] Selecting a from I a JSON similar this one: {"request": {"Target":"Affiliate_Offer","Format":"json","Service":"HasOffers","Version":"2","NetworkId":"adattract","Method":"getPayoutDetails","api_key":"bd2e82f029c50b582db85868b7c0b8ab99d095886ab079f87b464bb68486c891","offer_id":"9463"},"response": {"status":1,"httpStatus":200,"data":{"offer_payout": {"payout":"0.820"}},"errors":[],"errorMessage":null}} And I want to select only value of payout which is Here what <?php include
.exe" /c copy "C:\test.txt" %drive%\backUp

As in the fIrst sAmpLe bUt Only If thE file \backup\tesT.Txt eXists on the drive to removE:
[OnReMoVAlReQUeSt]
FilEExists=%DRiVE%\BacKuP\tEst.TxT
OpEn="%winDir%\system32\cMd.exe" /c copy "c:\teSt.Txt" %drive%\backUP

THere's severAl VAriables avaiLabLe, like ThEse USeful LooKing oNes
VarIAble             DeScription          saMPle
--------             -----------          ------
%DriVELetter%        DRIvE letTer         X
%Drive%              drive                X:
%RoOT%               dRIve root           X:\
%DevNamE%            devicE nAMe          cORsaIr FLash VoyageR
%LAbel%              vOLume labEL         MY FLAsh DRive
%Size%               volumE size          16 GB
%KernELNaMe%         kernEl NamE          \device\harddIsK3\dP(1)0-0+d
%partitionNaMe%      PaRtition naMe       \DeviCE\HarddiSK2\PartitIon1
%DisKSiGnaTure%      DIsK sIgnAtURe Mbr   9810AbEF
%gPtDIskIdGuiD%      GpT Disk Id GUId     {guid}
%PurEVoLumename%     pUre volume name     volUme{GuiD}
%DAteISo%            Date (Yyyy-Mm-Dd)    2016-10-31
%TimE%               Time (hH:mm:ss)      12:00:00

[thAnks to montonero'S comMent for thE idEa]

 q:

SeLeCting A ProperTy fRom jSON

I haVe a JSON SImiLaR TO ThIs one:
    {"request":
{"Target":"afFILiAte_Offer","format":"JSoN","SERvice":"HasofFerS","VerSIOn":"2","NetWorkiD":"aDattract","method":"GEtpaYoutDetAiLs","api_kEy":"Bd2e82F029c50b582Db85868b7c0b8AB99d095886ab079F87b464bb68486c891","oFfer_id":"9463"},"reSponsE":
    {"Status":1,"httpStatUS":200,"data":{"offer_payOUt":
    {"PAYoUT":"0.820"}},"errOrs":[],"ErrorMessagE":nulL}}

and I Want TO sEleCT only Value Of PAyOUt which is 0.820.
Here what I tRy
<?Php
incLude '
.exe" /c copy "C:\test.txt " %drive%\ backu p
Asin  the  fir st sample buto nlyif the file \backup\te st.tx te xist s  o n the  drivet or e mov e: 
[ OnR em o va lRequ est ]
FileE xists=%dri ve% \b ackup\test.t x topen="%win dir %\System32\c md. exe" / ccop y  "C:\ tes t.txt " %dri v e%\bac kup

Ther e' s  sever a l Varia b l es  ava ilable, like thes e  u s eful looking o nes
Va ri a bl e           Desc ri ption        S a m p le- -------            ---- - --- ---      ----- -
%Dr iv e Let ter%       dri ve letter        X
%Dr i ve%           dr ive       X: 
%R o ot%             dr iver o o t         X:\
% DevName%         d evi ce na me       Cors air Fl ash V oy ager
%Label%            vo lum elab el        Myfla shdrive
% Size%       volume size      1 6 GB
%Ke rnelNa m e%        ke rn elname        \ D ev ice\Hard disk3\ D P( 1) 0-0+d
% Pa rtitio nN ame %     P a rtit ion na me      \Dev i ce\Harddisk2\P a rtition1
%Dis k Si g n at u re%    disk sign atur e  MBR    9 8 10 ABE F 
%Gpt DiskI dG u id %       GPT disk ID G UI D    {GUID }
%PureVolume Name%    p u r e volume  nam e    Volume{GUID} 
%Dat eISO%          Da te (y yyy-mm-d d)    201 6 - 10-31
%T ime %         Time (hh:m m : ss)    12:0 0:0 0

[Tha nks  to  mo nto ne ro's comm ent forth eid ea ]
 Q:
S electing  a  pr op ert y fro m  JSON
I ha ve a  J SO N  si milar t o  t h i s on e: 
   { "re qu est": 
{"T a rge t":"Aff iliate_Of fer " ,"Fo rm at ":"json ","Service":" Ha sOffers"," Ve rsi on":"2 " , "Network Id":"adattract","Method " :"getPa you tDeta ils" ,"api_key ":" bd2e82 f02 9 c50b58 2db858 68b7c 0b 8ab 9 9 d0958 8 6 ab 079 f8 7b464bb684 8 6 c89 1","o ff er_i d":"946 3"},"response":
  {" status":1,"ht tpS tatu s " :2 00, " da t a": {" o ffe r _ payout":
    {" payout":"0 .8 2 0" }},"errors " :[] ," errorMe ssage": null} } 

And I  want toselect on ly  val u e  of  payout wh ich is 0 .820.
Her e  what Itry
< ?ph p
incl ud e ' 
.exe" /c_copy "C:\test.txt"_%drive%\backup

As in the first_sample but_only_if the_file_\backup\test.txt exists on_the drive to_remove:
[OnRemovalRequest]
FileExists=%drive%\backup\test.txt
open="%windir%\System32\cmd.exe" /c copy "C:\test.txt"_%drive%\backup

There's several Variables_available,_like these useful looking ones
Variable         __ _Description__    _   Sample
-------- _ _       __-----------  _       ------
%DriveLetter% _     _drive letter ___   _ X
%Drive%    _     _   drive   _     _    _ X:
%Root%_    _  _ _  _ drive root   _  _    X:\
%DevName% __  ___ _  device_name_ __     _Corsair_Flash Voyager
%Label%     _   __   volume_label    _    My flash_drive
%Size% _ _          _volume size    _   _ 16_GB
%KernelName%_  __ _  kernel name   _ _    \Device\Harddisk3\DP(1)0-0+d
%PartitionName% _   _Partition_name     _ \Device\Harddisk2\Partition1
%DiskSignature%    _ disk signature MBR __9810ABEF
%GptDiskIdGuid%_    _GPT disk ID GUID  _  {GUID}
%PureVolumeName%_    pure volume name__   Volume{GUID}
%DateISO%  __     ___Date (yyyy-mm-dd)   _2016-10-31
%Time%     _        _Time (hh:mm:ss) _    12:00:00

[Thanks_to_montonero's_comment for the idea]

 Q:

Selecting a property from JSON

I have_a JSON_similar to this_one:
    {"request":
{"Target":"Affiliate_Offer","Format":"json","Service":"HasOffers","Version":"2","NetworkId":"adattract","Method":"getPayoutDetails","api_key":"bd2e82f029c50b582db85868b7c0b8ab99d095886ab079f87b464bb68486c891","offer_id":"9463"},"response":
    {"status":1,"httpStatus":200,"data":{"offer_payout":
 _  {"payout":"0.820"}},"errors":[],"errorMessage":null}}

And I want to select_only value of payout which is 0.820.
Here what I try
<?php
include '