Search found 16 matches

by BAT Beginner
12 Mar 2010 21:55
Forum: DOS Batch Forum
Topic: Unusual? Script.
Replies: 2
Views: 1888

Unusual? Script.

Would there be any sort of code that-
1 Downloads a picture from the internet
2 Displays it in full screen

Just asking...
by BAT Beginner
06 Mar 2010 19:46
Forum: DOS Batch Forum
Topic: When m key pressed, goto
Replies: 3
Views: 2414

Re: When m key pressed, goto

@echo off
cls
:menu
echo Hello
if %password%==password (
doing something and looping
if m key pressed goto menu
)
Something like above.
"Is choice.exe available for you?"
Yes, yes it is.
by BAT Beginner
06 Mar 2010 13:36
Forum: DOS Batch Forum
Topic: When m key pressed, goto
Replies: 3
Views: 2414

When m key pressed, goto

I really want a script that when you press the m key, it goes to a certain place in the BAT script.
by BAT Beginner
24 Feb 2010 16:23
Forum: DOS Batch Forum
Topic: If specific text found in file, del file
Replies: 3
Views: 1918

Re: If specific text found in file, del file

could you do *.* instead of file.txt? would that work?I'ma go find out.
by BAT Beginner
23 Feb 2010 20:54
Forum: DOS Batch Forum
Topic: If specific text found in file, del file
Replies: 3
Views: 1918

If specific text found in file, del file

I need a code that would detect a specific text in a file, and if that text is found, it be deleted.
Would anyone happen to know such a code?
by BAT Beginner
19 Feb 2010 00:04
Forum: DOS Batch Forum
Topic: editing a text file
Replies: 2
Views: 2031

Re: editing a text file

im also new to coding, but if you want to edit a text file, all i have for a solution is: @echo off cls del TXTFILENAME.txt echo. copy C:\Data\User\Work\dir1 *.adm F:\admin > TXTFILENAME.txt echo. copy C:\Data\User1\Work1\dir1 *.adm F:\admin > TXTFILENAME.txt ping localhost -n 2 >nul exit
by BAT Beginner
12 Feb 2010 17:18
Forum: DOS Batch Forum
Topic: On Exit Do Command
Replies: 18
Views: 7119

Re: On Exit Do Command

When You Press ENTER it makes a noise.Also ; or , or ] etc...
by BAT Beginner
12 Feb 2010 15:11
Forum: DOS Batch Forum
Topic: On Exit Do Command
Replies: 18
Views: 7119

Re: On Exit Do Command

Ok All those codes are Awesome
But i was wondering, how to you make sounds like you did with the keyboard batch?
I would really love that kind of code.
by BAT Beginner
08 Feb 2010 17:59
Forum: DOS Batch Forum
Topic: On Exit Do Command
Replies: 18
Views: 7119

Re: On Exit Do Command

Because, as my name states, i am a .bat beginner and i want to know all the code i can possibly learn so i can become an expert.
by BAT Beginner
08 Feb 2010 16:39
Forum: DOS Batch Forum
Topic: On Exit Do Command
Replies: 18
Views: 7119

Re: On Exit Do Command

Can you disable the red X at least?
by BAT Beginner
07 Feb 2010 20:32
Forum: DOS Batch Forum
Topic: On Exit Do Command
Replies: 18
Views: 7119

On Exit Do Command

Is there any code that does a command when the executor closes the .bat file with the red X?If so, PLEASE post it below!
by BAT Beginner
29 Jan 2010 20:54
Forum: DOS Batch Forum
Topic: Windows 7 "If Exist" Error.
Replies: 4
Views: 5290

Re: Windows 7 "If Exist" Error.

Thank you So Much!
You are so Helpful!
~BAT Beginner
by BAT Beginner
29 Jan 2010 17:50
Forum: DOS Batch Forum
Topic: Windows 7 "If Exist" Error.
Replies: 4
Views: 5290

Re: Windows 7 "If Exist" Error.

Code: Select all

@echo off
if exist help.txt
goto yes
if not exist help.txt
goto no
:yes
Echo You Do have help.txt in this folder.
pause
:no
Echo You Do not have help.txt in this folder.
pause
by BAT Beginner
29 Jan 2010 17:45
Forum: DOS Batch Forum
Topic: Need a small code made for me
Replies: 7
Views: 3337

Re: Need a small code made for me

@echo off set tries=6 :top cls set /a tries=%tries% -1 if %tries%==0 ( goto penalty ) Echo You have %tries% attempts left. Echo Please enter your password to proceed set /p password= if %password%==PasswordGoesHere ( echo Correct! pause exit ) else ( goto top ) goto top :penalty echo You must wait ...
by BAT Beginner
29 Jan 2010 17:29
Forum: DOS Batch Forum
Topic: Windows 7 "If Exist" Error.
Replies: 4
Views: 5290

Windows 7 "If Exist" Error.

I try using
if exist
or
if not exist
on my new Win7 64-bit computer.
Unfortunently, I think they changed the code up, and I really need the code for If Exist in Windows 7 batch Files.
~BAT Beginner