Search found 313 matches
- 2021-Jul-12, 9:10 pm
- Forum: Windows CMD Shell
- Topic: unix like whereis in windows using batch file
- Replies: 0
- Views: 13427
unix like whereis in windows using batch file
12 Jun 2012 15:17 chakri292 Hi , Copy the below code and save it as whereis.bat file and put it into windir @for %%e in (%PATHEXT%) do @for %%i in (%1%%e) do @if NOT "%%~$PATH:i"=="" echo %%~$PATH:i Usage: whereis java This will almost work same as the whereis command in linux. -...
- 2021-Jul-12, 9:06 pm
- Forum: Windows CMD Shell
- Topic: Query Image Properties.
- Replies: 0
- Views: 6912
Query Image Properties.
11 Jan 2018 17:41 Dheath Query Image Properties. Hello again, does anyone know if there is a way to query the image "details" displayed in the image's "properties" GUI? I am specifically interested in the "Dimension" value of .jpg files. "Wmic datafile get" on...
- 2021-Jul-12, 6:15 pm
- Forum: Windows CMD Shell
- Topic: __COMPAT_LAYER variable.
- Replies: 0
- Views: 10874
__COMPAT_LAYER variable.
29 Mar 2016 20:06 npocmaka Looks like some applications use this variable to run in a specific compatibility mode. More interesting it can be used to suppress the UAC pop-up It can be set also as in the registry May be this is worthy enough to update these pages? https://ss64.com/nt/syntax-elevate.h...
- 2021-Jul-12, 6:08 pm
- Forum: Windows CMD Shell
- Topic: stringlength.cmd - just created - for anybody who can use it
- Replies: 2
- Views: 13859
stringlength.cmd - just created - for anybody who can use it
20 Jul 2008 17:06 Cornan Just created this stringlength.cmd file. All have my permission to use and SS64.org has my permission to post it Usage: CALL stringlength any parameters Return: _stringlength variable set to total parameter length @ECHO OFF SETLOCAL SET WhatsLeft=%* SET Count=0 :TestIt IF &q...
- 2021-Jul-12, 5:56 pm
- Forum: Windows CMD Shell
- Topic: How to better end batch script exit / b or goto: eof?
- Replies: 0
- Views: 10145
How to better end batch script exit / b or goto: eof?
02 May 2019 08:45 PiotrMP006 Hi How to better end batch script exit / b or goto: eof? ---------------------------- #2 02 May 2019 09:45 bluesxman If you need to set the ERRORLEVEL for the script (or a subroutine) then you should use exit /b [number]. Otherwise they are pretty much interchangeable in...
- 2021-Jul-12, 5:18 pm
- Forum: Windows CMD Shell
- Topic: Chronometer/Timer app for CMD?
- Replies: 0
- Views: 7817
Chronometer/Timer app for CMD?
03 Mar 2010 16:47 insthink I've googled this already, but results are scarce, and those results are dead links. Basically I'm looking for a cmd app that would start a timer/chrono until it is told to stop. Once stopped, it would tell the time between start/stop Example: 12:00:00 - timer.exe start >t...
- 2021-Jul-12, 4:42 pm
- Forum: Windows CMD Shell
- Topic: Removing *'s (asterisk) from variables?
- Replies: 0
- Views: 7480
Removing *'s (asterisk) from variables?
17 May 2007 09:55 NDog @echo off setlocal enabledelayedexpansion for /f "usebackq delims==$|<> tokens=1-6" %%g in ("%tempf%") do ( if /i "%%h" equ "option value" ( if not "%%l" equ "" ( set country=%%l ) ) ) You will firstly notice bluesxma...
- 2021-Jul-12, 4:27 pm
- Forum: Windows CMD Shell
- Topic: For /f documentation
- Replies: 0
- Views: 12260
For /f documentation
25 Oct 2012 09:42 carlos Hello. In the two pages of for /f documentation, for_cmd.html and for_f.html when mentions the info about the 61 tokens and show the caret, the ascii symbol for copy paste is other. The ascii code for caret is 0x5e and the two pages use in the sequence the ascii code 0x88 Al...
- 2021-Jul-12, 3:56 pm
- Forum: Windows CMD Shell
- Topic: Progress Indicator For Robocopy File
- Replies: 2
- Views: 8102
Progress Indicator For Robocopy File
19 Jan 2010 09:20 Chimaera Hi Im messing with this atm that i found on the net @echo off echo. echo. setlocal set COUNT=0 set MAXCOUNT=1000 set SECONDS=1 :LOOP title "\\" call :WAIT title "||" call :WAIT title "//" call :WAIT title "--" call :WAIT if /i "...
- 2021-Jul-12, 3:41 pm
- Forum: Windows CMD Shell
- Topic: setlocal level counter
- Replies: 0
- Views: 8780
setlocal level counter
17 Oct 2013 18:46 npocmaka 32 is the deepest level of setlocal when used in batch file (may be it's worth to be mentioned in the doc page). So: set "lev=" (@for /l %%i in (1 1 33) do ( setlocal 2>nul && set lev=%%i ) && for /l %%o in (1 1 %lev% ) do ( endlocal & set lev...