Posts

Showing posts with the label windows

Batch Script Iterative form

Batch Script Iterative form I have a batch script which : if both of the above statement is true then generate a success file. Below is my code which is working fine: SET /A file1=file2=Val=0 SET /A FileE=1 set /a flagname=1 for %%A in (*ABC*.txt) do set /a file1+=1 for %%A in (*XYZ*.txt) do set /a file2+=1 for %%i in ("*") do if exist "Processed%%~nxi" SET /A FileE=0 SET /A Val=%file1%*%file2%*%FileE% if %Val% EQU 1 ( echo SUCESS>Sucess.txt SET Flag=Sucess echo %Flag%) else ( if %file1% EQU 0 ( echo Missing ABC.txt files >> Error.txt) if %file1% GTR 1 ( echo More than 1 ABC.txt files >> Error.txt) if %file2% EQU 0 ( echo Missing XYZ.txt files >> Error.txt) if %file2% GTR 1 ( echo More than 1 XYZ.txt files >> Error.txt) (for %%i in ("*") do if exist "Processed%%~nxi" echo(File Exists in Processed Folder %%~i)>>Error.txt SET Flag=FAILURE echo %Flag%) My problem is how to transform above code to iterate over a lis...

How to output an executable using C++

How to output an executable using C++ I would like to have a program that can write another program to the disk. I guess the way would be to use standard binary write to a file. My problem here is that I do not know how to put the other executable in the source of my "installing" program. I do not want to have any extra files next to my installing program. I would like to use the mfc api for this if there is any need to use something other than the standard C++ put it to resource for example – RbMm Jun 30 at 10:24 The standard way to get a single file distribution is to use an installer or a zip file. Having one program secretly create a new file and execute that would likely trigger the virus protection on most systems. – Bo Persson Jun 30 at ...

FATAL ERROR: PHP mbstring extension is not enabled (IIS8/Windows 2012)

FATAL ERROR: PHP mbstring extension is not enabled (IIS8/Windows 2012) I am facing issues while install MantisBT after installing PHP 7.2 in IIS8 / Windows 2012 server. When I open the page http://localhost:9099/admin/install.php in the browser, I get the following error: http://localhost:9099/admin/install.php "FATAL ERROR: PHP mbstring extension is not enabled." Here is a screenshot of the error. I have searched for extension=php_mbstring.dll in INI file of php7 but didn't work – Jishan Alam Jun 30 at 11:07 php.net/manual/en/install.pecl.windows.php – Lex Li Jun 30 at 14:35 By clicking "Post Your Answer...