Search found 378 matches

by !k
09 Jan 2010 16:43
Forum: DOS Batch Forum
Topic: Task Kill
Replies: 4
Views: 5827

sweener wrote:You would have to use TSKILL if using a home version of Windows XP... or in Windows Server 2000 at least that's been my experience

Oh, I do not think that there are different operating systems.
Here for this killer promised support NT4, 2000, XP, 2003, Vista
by !k
09 Jan 2010 06:16
Forum: DOS Batch Forum
Topic: Task Kill
Replies: 4
Views: 5827

taskkill /?
by !k
08 Jan 2010 02:49
Forum: DOS Batch Forum
Topic: Memory leak
Replies: 4
Views: 6555

Code: Select all

timeout /T 4 /NOBREAK

This time delay? I am not familiar with this method of delay, where is he?
Try to sleep in another way.

And IMHO

Code: Select all

for /f "delims=" %%a in ('dir /a-d /b /s *.run') do (
more correct
by !k
08 Jan 2010 02:35
Forum: DOS Batch Forum
Topic: File finder help
Replies: 8
Views: 8828

Your end: goto end :end pause>nul replace to: goto end :end pause>nul exit /b :ext2usb setlocal enableextensions set "drive=%1" set "stick=%2" set "ext=%3" if not exist "%stick%\%ext%" mkdir "%stick%\%ext%" for /f "delims=" %%f in ('dir...
by !k
07 Jan 2010 03:42
Forum: DOS Batch Forum
Topic: Newbie here needs help to manipulate file names
Replies: 10
Views: 8650

@echo off setlocal enableextensions set "SourcePath=d:\deck\TEST\Source" set "DestinPath=d:\deck\TEST" if "%~1"=="" (echo Need input YYYYMMDDHH, ex. %~nx0 2009091814 &exit /b) set "Insite=%~1" set "Day=%Insite:~0,8%" if not &qu...
by !k
07 Jan 2010 02:58
Forum: DOS Batch Forum
Topic: File finder help
Replies: 8
Views: 8828

@echo off setlocal enableextensions set "drive=c:" set "stick=z:" set "ext=docx" if not exist "%stick%\%ext%" mkdir "%stick%\%ext%" for /f "delims=" %%f in ('dir %drive%\*.%ext% /a-d/b/s/od') do ( title Copying "%%f" ...
by !k
05 Jan 2010 17:13
Forum: DOS Batch Forum
Topic: Newbie here needs help to manipulate file names
Replies: 10
Views: 8650

YYYYMMDDHH

And, need to find YYYYMMDDHH or YYYYMMDD ?
by !k
05 Jan 2010 08:01
Forum: DOS Batch Forum
Topic: Help please
Replies: 7
Views: 7290

The Great One I have a Russian M$ "Windows", so I do not know, really need to look for "Running" or another word. Check it before use, otherwise you bury surf windows @echo off :nono tasklist /v /fi "imagename eq calc.exe" 2>nul |findstr "Running" >nul ||star...
by !k
05 Jan 2010 06:11
Forum: DOS Batch Forum
Topic: Newbie here needs help to manipulate file names
Replies: 10
Views: 8650

I ceased to understand what you need.
Copy files from the last date in the name or a specific date?
And yet, that means "14" in the Insite=2009091814
by !k
04 Jan 2010 06:10
Forum: DOS Batch Forum
Topic: Newbie here needs help to manipulate file names
Replies: 10
Views: 8650

dirty code uses hard break: @echo off setlocal enableextensions set "indir=c:\in dir" set "outdir=d:\out dir" set "begin=INSITE-PH01_1_20" chdir /d "%indir%" for /f "delims=" %%f in ('dir /b/o-n %begin%????????????_???.*') do call :f "%%...
by !k
01 Jan 2010 19:57
Forum: DOS Batch Forum
Topic: File reading and extracting parts of strings
Replies: 3
Views: 4571

running_tasks.txt is — smss.exe 624 0 384 КБ csrss.exe 724 0 9 036 КБ winlogon.exe 780 0 3 980 КБ services.exe 840 0 2 920 КБ lsass.exe 852 0 1 404 КБ svchost.exe 1164 0 3 536 КБ svchost.exe 1200 0 4 296 КБ svc...
by !k
29 Dec 2009 08:35
Forum: DOS Batch Forum
Topic: Need help with auto marking
Replies: 7
Views: 7106

No. COPY command can not create folders. You must create the folder manually; or the command MKDIR; or use the XCOPY command echo D| xcopy file1.txt "C:\Documents & Settings\Administrator\Desktop\d" /Y echo D| xcopy folder1 "C:\Documents & Settings\Administrator\Desktop\folder...
by !k
28 Dec 2009 18:14
Forum: DOS Batch Forum
Topic: Filename, filesize, file compare
Replies: 2
Views: 4045

Code: Select all

@echo off
echo Filename:%~1> out.dat
echo Filesize:%~z1>> out.dat
fc /b %1 %2| findstr /c:": ">> out.dat
pause
by !k
28 Dec 2009 17:59
Forum: DOS Batch Forum
Topic: Read only first few lines from txt
Replies: 2
Views: 4051

it's blank: @echo off setlocal enableextensions enabledelayedexpansion set "i=1" for /f "delims=" %%l in (file.txt) do ( if !i! LSS 4 ( echo line!i!: "%%l" set /a i=!i!+1 ) if "!i!"=="4" ( set "i=1" pause ) )
by !k
28 Dec 2009 09:10
Forum: DOS Batch Forum
Topic: Need help with auto marking
Replies: 7
Views: 7106

May be
copy file1.txt "C:\Documents & Settings\Administrator\Desktop\d"
:?
Folder "d" on Desktop must already exist