Useful batch files? (27)

1 Name: #!/usr/bin/anonymous : 2008-02-26 15:43 ID:VUe6csWH

I'm a newcomer to the DOS prompt and to making batch files, and I'm wondering if there are any particularly good things I can do with it in this day and age of GUIs. The only really useful one I've made so far forces DEL into interactive mode, without entering the option yourself. I've found a copy of Conway's Life rendered completely in DOS commands, but that's not quite my style.

Any recommendation?

2 Name: #!/usr/bin/anonymous : 2008-02-26 17:22 ID:Heaven

Make a tool that prefixes files in a folder with something, or suffixes, or changes something.

3 Name: #!/usr/bin/anonymous : 2008-02-26 18:01 ID:VUe6csWH

>prefixes files in a folder with something

ren [drive:][path]. prefix*.*

if that's actually made a batch file, then:

ren [drive:][path]%1 %2%1

Where %1 and %2 are arguments passed to the batch file.

4 Name: #!/usr/bin/anonymous : 2008-02-27 18:56 ID:VUe6csWH

I decided to write that "guess a number between 1 and 100" game in a batch file. It's fun, and I'm figuring out how to use set like scanf.

5 Name: #!/usr/bin/anonymous : 2008-02-27 22:07 ID:RXz9bhrd

Why batch files?

6 Name: #!/usr/bin/anonymous : 2008-02-28 05:58 ID:rVaF4VdH

Why the DOS prompt? There are much better shells available for Windows, like PowerShell.

This thread has been closed. You cannot post in this thread any longer.