How set .bat file to C++
<p>Can any one help ,i have create bat file now i want convert to C++</p>

<p>In my .bat file i need to create another file call name.bat, so right now i want use C++ to execute all this command.</p>

<p>Here my Sample:</p>

<pre><code>set /p CID=Curr_ID= 

set /p CIP=Curr_IP= 

set /p CIS=Curr_SUBNET= 

echo Curr_POrt must convert HEx to Dec

set /p CIPR=Curr_PORT= 

set /p NID=New_ID= 

echo cd\ &gt;&gt; if.bat

echo cls &gt;&gt; if.bat

echo if exist del.bat goto :label1 &gt;&gt; if.bat

echo :label1 &gt;&gt; if.bat

echo cd\ &gt;&gt; if.bat

echo c: &gt;&gt; if.bat

echo cls &gt;&gt; if.bat

echo @echo off

echo echo Setup Done !!! &gt;&gt; if.bat

echo pause &gt;&gt; if.bat

echo del del.bat &gt;&gt; if.bat

echo del name.bat &gt;&gt; if.bat

echo del if.bat &gt;&gt; if.bat

echo exit &gt;&gt; if.bat

echo del name.bat &gt;&gt; del.bat

echo cd rdsconfig &gt;&gt; name.bat

echo rdsconfig.exe /CURR_ID=%CID% /CURR_IP=%CIP% /CURR_SUBNET=%CIS% /CURR_PORT=%CIPR% /NEW_ID=%NID% /NEW_IP=192.168.2.%NID% /NEW_SUBNET=255.255.255.0 /NEW_PORT=33536 &gt;&gt; name.bat

START name.BAT
</code></pre>
