1.

Solve : %1-12 problems?

Answer» <html><body><p>I'm having one file start another file with check parameters to prevent the second file from being opened with out  running the first but <a href="https://interviewquestions.tuteehub.com/tag/even-976335" style="font-weight:bold;" target="_blank" title="Click to know more about EVEN">EVEN</a> when i run the the first the second still comes up withe the same error message<br/>the start command Code: <a>[Select]</a>start test2.bat %CD% %key1% 1234 %key2% 5678 %key3% 9012 %key4% 3456 i like cheese<br/>check code Code: <a>[Select]</a>IF not "%3"=="1234" goto error1<br/>IF not "%5"=="5678" goto error1<br/>IF not "%7"=="9012" goto error1<br/>IF not "%9"=="3456" goto error1<br/>IF not "%10"=="1" goto error1<br/>IF not "%11"=="like" goto error1<br/>IF not "%<a href="https://interviewquestions.tuteehub.com/tag/12-241884" style="font-weight:bold;" target="_blank" title="Click to know more about 12">12</a>"=="cheese" goto error1<br/> In test2.bat:<br/><br/>test2.bat=%0<br/>%cd%=%1<br/>%key1%=%2<br/>1234=%3<br/>%key2%=%4<br/>5678=%5<br/>%key3%=%6<br/>9012=%7<br/>3456=%8<br/>i=%9<br/>-----<br/>like=%10<br/>cheese=%11<br/><br/>I don't know if anything below ----- can actually work.i guess i have to get rid of i like cheese  Well, you can always see if it works.You can only use <a href="https://interviewquestions.tuteehub.com/tag/single-644669" style="font-weight:bold;" target="_blank" title="Click to know more about SINGLE">SINGLE</a> digits for passed parameters and %0 is reserved so you just have %1 to %9 to play with. But you have the SHIFT command.<br/></p></body></html>


Discussion

No Comment Found