That agony has been solved for me. I found out that what was taking over port 80 is http api service. I wrote in cmd: net stop http Asked me “The following services will be stopped, do you want to continue?” Pressed y It stopped a number of services actually. Then wrote localhost and wallah, … Read more
Execute gpedit.msc (local Policies) Computer Configuration -> Windows settings -> Scripts -> Shutdown -> Properties -> Add
Not sure about locked directories (does Windows have that?) But detecting if a file is being written to by another process is not difficult. @echo off 2>nul ( >>test.txt echo off ) && (echo file is not locked) || (echo file is locked) I use the following test script from another window to place a … Read more
Two years old, but for completeness… Standard, inline approach: (i.e. behaviour you’d get when using & in Linux) START /B CMD /C CALL “foo.bat” [args […]] Notes: 1. CALL is paired with the .bat file because that where it usually goes.. (i.e. This is just an extension to the CMD /C CALL “foo.bat” form to … Read more
To install android component do following steps Run android sdk manager on offline machine Click on show/hide log window here youu will find all the list of xml files where packages are available Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml Validate XML: https://dl-ssl.google.com/android/repository/repository-7.xml Parse XML: https://dl-ssl.google.com/android/repository/repository-7.xml https://dl-ssl.google.com/android/repository/addons_list-2.xml is main xml file where all … Read more
You can use FOR /F and go through some loops inside a batch file to capture the output: @echo off setlocal enabledelayedexpansion set var= for /f “tokens=* delims=” %%i in (‘dir /tw /-c b.bat ^| findstr /B “[0-9]”‘) do set var=!var!^ %%i echo %var% It is especially important that there are two newlines between !var!^ … Read more
Here’s an article with full code sample on how to use your own custom “chrome” for an application: http://geekswithblogs.net/kobush/articles/CustomBorderForms3.aspx This looks like some really good stuff. There are a total of 3 articles in it’s series, and it runs great, and on Vista too!
For the php_intl.dll extension to work correctly, you need to have the following files in a folder in your PATH: icudt36.dll icuin36.dll icuio36.dll icule36.dll iculx36.dll icutu36.dll icuuc36.dll By default they’re sitting in your PHP directory, but that directory isn’t necessarily in your PATH (it wasn’t for me, using xampp) This has to be in your … Read more
Assuming you have two programs that process the two files, process_in.exe and process_out.exe: for %%f in (*.in) do ( echo %%~nf process_in “%%~nf.in” process_out “%%~nf.out” ) %%~nf is a substitution modifier, that expands %f to a file name only. See other modifiers in https://technet.microsoft.com/en-us/library/bb490909.aspx (midway down the page) or just in the next answer.
Use the following steps to install curl: Open https://curl.haxx.se/dlwiz?type=bin in a browser. Select your operating system in the dropdown box: either Windows /Win32 or Win 64. Click Select! For Win 32, choose whether you will use curl in a Windows Command Prompt (Generic) or in a Cygwin terminal (cygwin). For Win 64, choose whether you … Read more