Search found 46 matches

by AiroNG
25 Feb 2020 00:06
Forum: DOS Batch Forum
Topic: How to print to first line of txt file?
Replies: 2
Views: 3866

Re: How to print to first line of txt file?

Depending on the formatting of the your date/time stamps you could use the SORT command.
by AiroNG
11 Jun 2015 23:19
Forum: DOS Batch Forum
Topic: CMD-Geek (a Batch-IDE)
Replies: 7
Views: 3673

Re: CMD-Geek (a Batch-IDE)

Maybe it's just me but what's the point in having such a program? If i do not know how a command works i could always go [command] /? and i'll get all the information i need about the command... Where would the learning effect be if a program corrects my syntax? Maybe my syntax is advanced and expli...
by AiroNG
18 Apr 2015 17:36
Forum: DOS Batch Forum
Topic: Batch Animated Text
Replies: 10
Views: 8795

Re: Batch Animated Text

AiroNG My time is format h:mm:ss.hs yours has a comma h:mm:ss,hs so add a comma to the delimeters in this for loop in the delay routine: for /f "tokens=1-4 delims=:.," %%a in ("%time1%") do ( Then it should work. I have only tested on Win7. So I am stupid then Ok, i will test it...
by AiroNG
18 Apr 2015 07:22
Forum: DOS Batch Forum
Topic: Batch Animated Text
Replies: 10
Views: 8795

Re: Batch Animated Text

SpinSpell.bat ["Message goes here"] [spincount] [spindelay] *snip* :wait set timen=%time: =% if /i %timen% geq %time2% goto :end goto :wait *snip* shouldn't that be: set timen=%time:~0,8% ? [/code] Because otherwise i get a Syntax error message: D:\set timen=15:15:02,59 "59" kan...
by AiroNG
20 Mar 2015 14:25
Forum: DOS Batch Forum
Topic: Daily backup batch file
Replies: 4
Views: 4895

Re: Daily backup batch file

something along the lines of this?
(my xcopy knowledge is more than a bit rusty)

Code: Select all

md %date%
xcopy The:\source\folder the:\destination\folder /E /H


/S = copies all folders and subfolder
/H = copies files with the attributes "hidden" and "system"
by AiroNG
20 Mar 2015 14:10
Forum: DOS Batch Forum
Topic: help me !! use command line 7z.exe to extract,compress files
Replies: 4
Views: 3198

Re: help me !! use command line 7z.exe to extract,compress f

<evilmode> how 'bout: googling a bit and reading ? Honestly... it took me longer to write this post than to google for the 7z commandline help...</evilmode> Or you could just go: D:\>7z.exe -h 7-Zip 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 Usage: 7z <command> [<switches>...] <archive_name...
by AiroNG
20 Feb 2015 17:38
Forum: DOS Batch Forum
Topic: Scrolling text, ping keeps showing
Replies: 4
Views: 2045

Re: Scrolling text, ping keeps showing

You can use ">nul" to hide the whole ping-output.

Code: Select all

ping localhost -n 2 >nul


result:

Code: Select all

C:\>ping localhost -n 2 >nul && echo: Test
 Test

C:\>
by AiroNG
11 Dec 2014 01:17
Forum: DOS Batch Forum
Topic: Request: download a file if and only if its size changes
Replies: 8
Views: 2821

Re: Request: download a file if and only if its size changes

Alternatively you could try this: (wget is required though): :update SET new=%tmp%\%name%\update.bat SET old=update.bat rem get file echo: echo: connecting to server and aquiring file... wget.exe -q -O %tmp%\%name%%ext% %url%%name%%ext% 2>nul rem looks for filesize and puts them into variables FOR %...
by AiroNG
18 Jun 2014 16:04
Forum: DOS Batch Forum
Topic: Game code help?
Replies: 81
Views: 21504

Re: Game code help?

I was wrong about: that is the point at which the system shows: "( was unexpected at this time" The reason is that "!board[%a%+%b%]!" doesn't contain a value. It's been a while since i dove into Batch... my sincere apologies about that! The error can be fixed by using parenthesis...
by AiroNG
18 Jun 2014 12:59
Forum: DOS Batch Forum
Topic: Game code help?
Replies: 81
Views: 21504

Re: Game code help?

Again i sadly can't deliver a solution but i found the erroneous code: if !board[%a%+%b%]! neq 0 ( that is the point at which the system shows: " ( was unexpected at this time" The reason is that "!board[%a%+%b%]!" doesn't contain a value. To find out where things go awry use &qu...
by AiroNG
18 Jun 2014 12:23
Forum: DOS Batch Forum
Topic: Game code help?
Replies: 81
Views: 21504

Re: Game code help?

I don't know if it'll fix your current problem, but this part is wrong: choice /c wasdx /n /m "" if %errorlevel%==1 rem UP if %errorlevel%==2 rem LEFT if %errorlevel%==3 goto movedown if %errorlevel%==4 rem RIGHT it should be like this: choice /c wasdx /n /m "" if errorlevel 5 go...
by AiroNG
18 Jun 2014 04:05
Forum: DOS Batch Forum
Topic: bg.exe sprites help?
Replies: 5
Views: 2238

Re: bg.exe sprites help?

Maybe this will help: try this code and you can see that a few characters wont work. @echo off & cls & setlocal enabledelayedexpansion & Color 07 bg.exe sprite 5 2 a \0\1\2\3\4\5\6\7\8\9\n bg.exe sprite 6 2 a \11\12\13\14\15\16\17\18\19\20\21\22\23\24\25\26\27\28\29\30\31\32\33\34\35\36\...
by AiroNG
17 Jun 2014 17:09
Forum: DOS Batch Forum
Topic: bg.exe sprites help?
Replies: 5
Views: 2238

Re: bg.exe sprites help?

You can find the post from carlos where he points out how to use bg.exe here.

Hope it helps.
by AiroNG
21 Jan 2014 10:58
Forum: DOS Batch Forum
Topic: How to handle a comma in a filename with WMIC?
Replies: 32
Views: 15422

Re: How to handle a comma in a filename with WMIC?

I may have a solution:
WMIC DATAFILE WHERE (name="%file%") get lastmodified | find "."

however, if i run your script with the parenthesis i get another error:
Keine Instanzen verfügbar.

it should translate to something like "No instances available".
by AiroNG
14 Jan 2014 12:09
Forum: DOS Batch Forum
Topic: Delay-Wait-Sleep tricks.
Replies: 64
Views: 31749

Re: Delay-Wait-Sleep tricks.

on topic:
I think the idea of carlsomo back on the first page of this thread might be a good idea.
He said "it uses much cpu" but I'm sure there are some nice tricks
to reduce the cpu usage (along the lines of this).


off topic:

Mod Edit: I removed the off topic posts.