Search found 378 matches

by !k
22 Feb 2010 16:35
Forum: DOS Batch Forum
Topic: Batch unzip
Replies: 9
Views: 8905

Re: Batch unzip

d_a_r_k wrote:directory from where the batch file has been executed
Current dir? Use %cd% var:

Code: Select all

7z e archive.zip -o"%cd%" *.* -r
by !k
04 Feb 2010 07:50
Forum: DOS Batch Forum
Topic: Reverse command prompt action
Replies: 2
Views: 4383

Re: Reverse command prompt action

Run notepad %WINDIR%\system32\drivers\etc\hosts
erase string 127.0.0.1 activate.adobe.com and save change
by !k
01 Feb 2010 14:37
Forum: DOS Batch Forum
Topic: compare files and echo message
Replies: 7
Views: 8507

Re: compare files and echo message

Code: Select all

echo %date% %time% >>T:\ftp\test.log
for %%A in ("T:\data\test.dat" "T:\arch\test.dat") do echo %%A timestamp %%~tA, size %%~zA >>T:\ftp\test.log
by !k
30 Jan 2010 01:57
Forum: DOS Batch Forum
Topic: How to make a pop-up?
Replies: 6
Views: 8463

Re: How to make a pop-up?

aGerman
Cool. I just do not understand anything in VBS
by !k
29 Jan 2010 14:16
Forum: DOS Batch Forum
Topic: Manual vs. automated execution problems
Replies: 2
Views: 3827

Re: Manual vs. automated execution problems

Try this

Code: Select all

FINDSTR /B /I /N ".put .get put get" "D:\FTP\%PROCNAME%\%%a" > NUL && FIND /I /C "dir" D:\FTP\%PROCNAME%\%%a >> D:\altPath\dir.txt
by !k
28 Jan 2010 09:59
Forum: DOS Batch Forum
Topic: compare files and echo message
Replies: 7
Views: 8507

Re: compare files and echo message

pink wrote:I need the program to sleep sometime...
5 way in Need to create a 60 minutes delay in my DOS script
by !k
22 Jan 2010 07:12
Forum: DOS Batch Forum
Topic: Append/over-write screen text WITHOUT advancing a line
Replies: 9
Views: 10641

Re: Re:

debug< "%scr%" >nul

Do not worry. This code works fine on XP SP3.
If you are still afraid debug, then decodes it UUE encoded text and get ready 27-byte file

Code: Select all

begin 644 _CHO.COM
;NX``0X`_#77ZQ@<DM`FZ@@`YVG\"S2&T3,TA
`
end
sum -r/size 29176/27
by !k
21 Jan 2010 12:47
Forum: DOS Batch Forum
Topic: Append/over-write screen text WITHOUT advancing a line
Replies: 9
Views: 10641

If you only need to append, then use the "echo" substitute @echo off chdir /d "%~dp0" set "scr=%~dp0\_cho.scr" echo N _CHO.COM> "%scr%" echo E 0100 BB 80 00 43 80 3F 0D 75 FA C6 07 24 B4 09 BA 82>> "%scr%" echo E 0110 00 39 DA 7F 02 CD 21 B4 4C CD 21...
by !k
21 Jan 2010 12:19
Forum: DOS Batch Forum
Topic: Be aware of BAD LINKS in FORUM POSTs and PM!
Replies: 4
Views: 5853

Re: Be aware of BAD LINKS in FORUM POSTs and PM!

One quick action we could take is to disable PM altogether, to avoid spam and bad links being send out that way. This is similar to treatment of headache with a guillotine For beginners need to disable the ability to send messages when they use the bbcode [url], but they have less, for example 5 of...
by !k
21 Jan 2010 11:38
Forum: DOS Batch Forum
Topic: Append/over-write screen text WITHOUT advancing a line
Replies: 9
Views: 10641

Re: Append/over-write screen text WITHOUT advancing a line

I would like to display the ABSENT item and NOT advance to the next line. I want the "ABSENT" display line to be re-used without advancing. Watch this topic: http://forum.script-coding.info/viewtopic.php?id=2945 (Russian) Googlenglish: http://translate.google.com/translate?hl=en&sl=ru...
by !k
21 Jan 2010 11:25
Forum: DOS Batch Forum
Topic: compare files and echo message
Replies: 7
Views: 8507

pink @echo off set "data=c:\data\myfile.txt" set "arch=c:\arch\myfile.txt" set "log=c:\logfile.txt" rem echo N| comp "%data%" "%arch%" 2>nul 1>nul &&echo Equal> "%log%" ||( fc "%data%" "%arch%" >nul &&ec...
by !k
20 Jan 2010 09:13
Forum: DOS Batch Forum
Topic: For loop: operation on a stack of files [newbie]
Replies: 2
Views: 4172

Which operation you need? Some operations may use the masks ? and * for manipulate with multiple files.

To manipulate files one by one, you can use command FOR

Code: Select all

for %%a in (temp0000.*) do echo Do something with "%%a"


...or M$ util FORFILES.EXE
by !k
12 Jan 2010 23:23
Forum: DOS Batch Forum
Topic: File finder help
Replies: 8
Views: 8828

"%~dp0" is equal "disc:\path\" so call

Code: Select all

call :ext2usb c: %~d0 docx

or edit :ext2usb subprogram
by !k
12 Jan 2010 17:46
Forum: DOS Batch Forum
Topic: File finder help
Replies: 8
Views: 8828

Changed z: to present the letter of your usb-stick