Search found 12 matches

by Thebetr1
16 Jul 2008 23:32
Forum: DOS Batch Forum
Topic: ;
Replies: 3
Views: 9154

well you could use

Code: Select all


@ECHO OFF

echo BLABLA
echo Delaying for 1 second

echo wscript.sleep 1000>sleep.vbs
wscript sleep.vbs
del /f /q sleep.vbs

echo bla bla agian
pause
exit



but that still uses wscript.exe
by Thebetr1
08 Jul 2008 01:04
Forum: DOS Batch Forum
Topic: Setting variable values and logging to a file
Replies: 9
Views: 16999

its bad programming to use
goto :label

because : is the character that is setting the label

its like going
goto Setlabel hi


Also this site is being glitchy even though ive got it set to show my sig
it doesn't show it ??
by Thebetr1
30 Jun 2008 04:50
Forum: DOS Batch Forum
Topic: script to read a text file
Replies: 2
Views: 8194

tell me if this is what you want

Code: Select all


@ECHO OFF

set /p arg=<"input.txt"
start "" "update.exe" %arg%
exit

by Thebetr1
30 Jun 2008 04:36
Forum: DOS Batch Forum
Topic: Issue with ">> file >>"
Replies: 3
Views: 8820

yes my friend dgmakers is right
by Thebetr1
30 Jun 2008 04:31
Forum: DOS Batch Forum
Topic: Can I calculate a date?
Replies: 8
Views: 21097

Hey i dont know weather this helps or not but ill give it to you anyway @ECHO OFF :: --- Change thease to then date you wish --- :: set year=2008 set month=12 set day=31 set d=%date:~4,10% set a=%d:~0,2% set b=%d:~3,2% set c=%d:~6,4% if "%c%" GEQ "%year%" ( if "%b%"...
by Thebetr1
30 Jun 2008 04:20
Forum: DOS Batch Forum
Topic: How Do You Play A Sound With Batch?
Replies: 1
Views: 7410

You can play a simple beep sound through the bios speaker

EG:

Code: Select all

@ECHO OFF
title Beeper
:top
>nul
pause
goto top
by Thebetr1
30 Jun 2008 04:08
Forum: DOS Batch Forum
Topic: Quotes problem
Replies: 2
Views: 9199

just strip the quotes out, easy...

set var=%var:'=%

or for double...

set var=%var:"=%

easy!
by Thebetr1
30 Jun 2008 04:00
Forum: DOS Batch Forum
Topic: Play a basic sound in DOS promt (Batch file)
Replies: 6
Views: 45988

A beeper we made years ago ... guess we were bored

Code: Select all

@ECHO OFF
title Beeper
:top
>nul
pause
goto top
by Thebetr1
30 Jun 2008 03:36
Forum: DOS Batch Forum
Topic: Replace space in variable with %20
Replies: 3
Views: 16675

! !!!

Never heard of ! before?

and whats with the...
SETLOCAL ENABLEDELAYEDEXPANSION
by Thebetr1
30 Jun 2008 03:29
Forum: DOS Batch Forum
Topic: Increment Variable
Replies: 2
Views: 13727

Re

You cant.

you cant use a command while you are using another command.

just use dir "blabla" >> file.txt and count the number of lines.



if anyone knows a way to do this let me know :D
by Thebetr1
30 Jun 2008 03:24
Forum: DOS Batch Forum
Topic: Can I minimize a batch window from inside the batch file?
Replies: 3
Views: 20389

You can make the batch file reopen itsself. eg:

Code: Select all


@echo off
if "%1"=="done" goto runtime
start "" /min %0 done
exit

:runtime
title Testing 1 2 3 ...
echo bla bla
echo.
pause
exit

by Thebetr1
30 Jun 2008 03:06
Forum: DOS Batch Forum
Topic: Progress Bar
Replies: 3
Views: 29333

Loader.cmd

Here's one that me and dgmakers made for fun. i dont think its really what your looking for but if its multiple commands you can use this @echo off title LOADER set load=echo Loading a delay... echo wscript.sleep 1000 > wait.vbs set wait=wscript.exe wait.vbs %load% echo  5%%% %wait% cls %load% echo...