Category : cmd

I want to make my Windows batch file to read and copy the values of an XML file between the tags of hello_from other side to stop. @echo off setlocal EnableDelayedExpansion (for /F "delims=" %%a in (‘findstr /I /L "<hello_from other side> <stop>" C:sikeDesktoptestng-results.xml’) do ( set "line=%%a" set "line=!line:*<hello_from other sid>=!" set "line=!line:*<stop>=!" for ..

Read more

My project is in D:projectsautomation.jar & it reads credentials from text file named as properties.txt present in D:projectsproperties.txt. I want to run automation.jar from cmd but I’m getting: Caused by: java.io.FileNotFoundException: properties.txt (The system cannot find the file specified). I tried this in cmd: "C:Program FilesJavajdk-16binjava.exe" -jar D:projectsautomation.jar cd /d D:projects Even though I mentioned ..

Read more

In case anyone’s curious regarding my use-case for this, I’m currently making an installer (Inno Setup based), that creates a desktop shortcut for each selected component, however regardless of the end-user selection all entries for shortcuts to be created, are generated. As such I’m looking to just make a simple batch script to delete these ..

Read more