Search found 7 matches

by dani8190
08 Sep 2010 05:08
Forum: DOS Batch Forum
Topic: HELP PLEASE cmd opening fail
Replies: 2
Views: 4609

HELP PLEASE cmd opening fail

i neeed help

a have made a fail. when i´ll open a bat file by clicking on it, it just opening cmd without running the script :cry: :evil:
so i haft to type start hello.bat to run the file. how to fix it???
by dani8190
11 Jul 2010 12:13
Forum: DOS Batch Forum
Topic: Remove folder once it is empty!!!
Replies: 3
Views: 5704

Re: Remove folder once it is empty!!!

hmmm how about this?

cd\
cd c:\reports\2008
if not exist *.doc goto delete


:delete
cd\
cd reports
rd /S /Q 2008
exit

hope it helps
by dani8190
20 May 2010 00:30
Forum: DOS Batch Forum
Topic: set /p timeout
Replies: 3
Views: 6642

set /p timeout

i cant remember how to make a set /P text=text: with timeout.

:home
set /P some text=some text

if you not have typed somthing and pressed enter for a time it will go back to home. how to do that?

(hope you understand)
by dani8190
06 May 2010 13:57
Forum: DOS Batch Forum
Topic: echo >> hello.bat fail
Replies: 2
Views: 4267

echo >> hello.bat fail

i have typed this in cmd: echo echo hello >> hello.txt >> hello.bat so the batchfile script on hello.bat is this: echo hello >> hello.txt and when you starting hello.bat it will make hello.txt in hello.txt: hello but.... when i typing echo echo hello >> hello.txt >> hello.bat today the hallo.bat has...
by dani8190
20 Mar 2010 13:59
Forum: DOS Batch Forum
Topic: batchfile change line
Replies: 2
Views: 4846

batchfile change line

how to make a batchfile change a single line in any place in a textfile?
by dani8190
17 Mar 2010 14:14
Forum: DOS Batch Forum
Topic: two batch windows sync
Replies: 2
Views: 4915

Re: two batch windows sync

thank you so much
by dani8190
17 Mar 2010 03:23
Forum: DOS Batch Forum
Topic: two batch windows sync
Replies: 2
Views: 4915

two batch windows sync

is it possible to sync two cmd windows?
there is two cmd windows open.
when i typing in window1 and press enter.
the message will popup in window2.
how to do that