Click here to Skip to main content
15,914,780 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: How to draw object like drawing mouse cursor? Pin
jajamal8-Oct-03 16:17
jajamal8-Oct-03 16:17 
QuestionDeleting Event Log files? Pin
ravfingcoder6-Oct-03 21:37
ravfingcoder6-Oct-03 21:37 
GeneralNetwork Drive Mapping in Windows XP. Pin
Moisés Lima Dutra6-Oct-03 1:56
Moisés Lima Dutra6-Oct-03 1:56 
Generalcmd.exe / script language Pin
Jörgen Sigvardsson3-Oct-03 0:20
Jörgen Sigvardsson3-Oct-03 0:20 
GeneralRe: cmd.exe / script language Pin
Mike Dimmick3-Oct-03 6:38
Mike Dimmick3-Oct-03 6:38 
GeneralRe: cmd.exe / script language Pin
Jörgen Sigvardsson3-Oct-03 10:43
Jörgen Sigvardsson3-Oct-03 10:43 
GeneralRe: cmd.exe / script language Pin
Mike Dimmick3-Oct-03 22:56
Mike Dimmick3-Oct-03 22:56 
GeneralRe: cmd.exe / script language Pin
Blake Coverett8-Oct-03 21:12
Blake Coverett8-Oct-03 21:12 
And help for, help call and help exit as well. It's actually a surprisingly capable little language these days. Here's the contents of the which.cmd file in my tools path:
@echo off
setlocal enableextensions

if "%1" == "" (
	echo usage: which ^<command^>
	exit /b 1
)

if "%~x1" == "" (
	call :pathext %1 %PATHEXT%
) else (
	call :search %1
)

if %ERRORLEVEL% neq 0 echo %1 not found.
exit /b %ERRORLEVEL%

:pathext
	:loop
		call :search %1%2
		if %ERRORLEVEL% equ 0 exit /b 0
		shift /2
	if not "%2" == "" goto loop
	exit /b 1

:search
	if not "%~f$PATH:1" == "" (
		echo %~f$PATH:1
		exit /b 0
	) else (
		exit /b 1
	)


--
-Blake (com/bcdev/blake)
GeneralRe: cmd.exe / script language Pin
Mike Dimmick9-Oct-03 0:12
Mike Dimmick9-Oct-03 0:12 
GeneralRe: cmd.exe / script language Pin
Blake Coverett9-Oct-03 7:16
Blake Coverett9-Oct-03 7:16 
GeneralMultiple local websites Pin
Nathan Ridley1-Oct-03 17:37
Nathan Ridley1-Oct-03 17:37 
GeneralRe: Multiple local websites Pin
Baldcat1-Oct-03 17:51
Baldcat1-Oct-03 17:51 
GeneralRe: Multiple local websites Pin
Nathan Ridley1-Oct-03 18:03
Nathan Ridley1-Oct-03 18:03 
GeneralRe: Multiple local websites Pin
Baldcat1-Oct-03 18:33
Baldcat1-Oct-03 18:33 
GeneralRe: Multiple local websites Pin
Nathan Ridley2-Oct-03 3:23
Nathan Ridley2-Oct-03 3:23 
GeneralRe: Multiple local websites Pin
Roger Wright1-Oct-03 19:01
professionalRoger Wright1-Oct-03 19:01 
GeneralRe: Multiple local websites Pin
Baldcat1-Oct-03 19:43
Baldcat1-Oct-03 19:43 
GeneralRe: Multiple local websites Pin
Nathan Ridley1-Oct-03 20:05
Nathan Ridley1-Oct-03 20:05 
GeneralRe: Multiple local websites Pin
Roger Wright2-Oct-03 3:13
professionalRoger Wright2-Oct-03 3:13 
GeneralRe: Multiple local websites Pin
Nathan Ridley2-Oct-03 3:16
Nathan Ridley2-Oct-03 3:16 
GeneralRe: Multiple local websites Pin
Nathan Ridley1-Oct-03 21:15
Nathan Ridley1-Oct-03 21:15 
GeneralRe: Multiple local websites Pin
Roger Wright2-Oct-03 3:17
professionalRoger Wright2-Oct-03 3:17 
GeneralRe: Multiple local websites Pin
Nathan Ridley2-Oct-03 3:24
Nathan Ridley2-Oct-03 3:24 
GeneralRe: Multiple local websites Pin
Nathan Ridley2-Oct-03 3:26
Nathan Ridley2-Oct-03 3:26 
GeneralRe: Multiple local websites Pin
Roger Wright2-Oct-03 3:30
professionalRoger Wright2-Oct-03 3:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.