batchmaster60 Guest
|
 |
« Reply #390 on: June 27, 2009, 12:45:03 PM » |
|
But you cant use set /p with the type command.
|
|
|
|
|
macdad- Topic Starter
Thanked: 39 Posts: 2,520
|
 |
« Reply #391 on: June 27, 2009, 03:07:39 PM » |
|
Oh, that's what you're doing.
If you mean by editing the file with the Type command, then no that doesn't work Type only displays file content.
|
If you dont know DOS, you dont know Windows... Thats why Bill Gates created the Windows NT Family. 
|
|
|
devcom
Thanked: 37 Posts: 521
|
 |
« Reply #392 on: July 25, 2009, 06:50:16 AM » |
|
this isn't a help post, its where you post batch programs you've made if you want to share them. please make another thread
|
|
|
|
|
|
smeezekitty
Thanked: 44 Posts: 0
|
 |
« Reply #394 on: August 25, 2009, 07:38:59 PM » |
|
i wrote this batch file its alittle buggie but its fairly neat it helps you find files here it is:
:BEGIN echo off cls set /P direct="What drive and directory would you like to explorer?[DRIVE:\DIR] " cd /D %direct%>nul if %errorlevel% equ 1 echo Drive or directory doesnt exist & exit :START cls echo type CHGD to goto a diffrent drive and/or directory set /P FM="type in the first letter of the filename, ^ to quit " if %FM% equ ^ goto END if %FM% equ CHGD goto RAW :FNF cls dir /B %FM%???????.* | more echo Type filename as seen above or 'BACKSTART' to choose another letter set /P FM="type ^ to quit " if %FM% equ BACKSTART goto START if %FM% equ ^ goto END if not exist %FM% echo FILE NOT FOUND & PAUSE & goto BEGIN %FM% goto START :RAW goto BEGIN :END
|
Acer extensa 463oz 2 gb ram 160gb hdd 2ghz processor and desk fan sitting next to it for cooling 
|
|
|
macdad- Topic Starter
Thanked: 39 Posts: 2,520
|
 |
« Reply #395 on: August 27, 2009, 04:42:20 PM » |
|
Very nice, a multi-drive file searcher.
|
If you dont know DOS, you dont know Windows... Thats why Bill Gates created the Windows NT Family. 
|
|
|
Undernerd
Posts: 1
|
 |
« Reply #396 on: November 30, 2009, 05:56:19 PM » |
|
well i think you dont have choice.exe becouse it use it to move smother than typeing single letter and press enter. here is a link to choice.exe http://hp.vector.co.jp/authors/VA007219/dkclonesup/choice.html simply put it to C:\windows\system32
Thanks Devcom, I've been pulling my hair out trying to make a batch file using CHOICE and have been rather upset that XP isn't running it.
|
|
|
|
|
gamerx365
Thanked: 1 Posts: 664
Experience: Experienced OS: Windows 7

Radda Radda!
|
 |
« Reply #397 on: December 05, 2009, 09:08:33 PM » |
|
I hope no one minds I posted this in another thread but it seems fitting to put the link to said thread here... Eternal Death Slayer 2! (beta) http://www.computerhope.com/forum/index.php/topic,66827.msg651063.html#msg651063If the double post is a problem contact me and I will delete it. I figured maybe some users here don't peruse the off topic boards and this topic really fits this thread. Thanx. -Seth
|
|
|
|
macdad- Topic Starter
Thanked: 39 Posts: 2,520
|
 |
« Reply #398 on: December 06, 2009, 03:08:29 PM » |
|
Long time no see Gamer.
|
If you dont know DOS, you dont know Windows... Thats why Bill Gates created the Windows NT Family. 
|
|
|
|
|
Ujujboypiano
Posts: 3
|
 |
« Reply #400 on: December 11, 2009, 02:03:15 PM » |
|
I have made a java compiling program. I don't know why you would need it- just saying. If you press y, it will tell the program "Yes, I have typed a file to compile as an argument.". If you press n, it will do the opposite. Although, you have to download Java for it to work. You should find "javac" in the bin folder. Also, just make the "cd" statement at the end the address of your Java file. I am NOT very experienced with MS-DOS, so I don't think this will help much.
@echo off :start set choice= set /p choice="Have you typed a filename? Press y for yes, n for no. (then press enter)" if '%choice%' == 'y' ..\bin\javac %1 if '%choice%' == 'n' cls cd C:\Program Files\Java\jdk1.6.0_16\test
|
|
|
|
|
|
|
|
|
macdad- Topic Starter
Thanked: 39 Posts: 2,520
|
 |
« Reply #403 on: December 19, 2009, 07:02:46 AM » |
|
How did you add that in, seems to be that you can only add ^G in EDIT or if you append it to the file from CMD itself(It doesn't add it in Notepad though, and all other GUIs due to the fact of keyboard shortcuts)
|
If you dont know DOS, you dont know Windows... Thats why Bill Gates created the Windows NT Family. 
|
|
|
Ujujboypiano
Posts: 3
|
 |
« Reply #404 on: December 22, 2009, 02:11:47 PM » |
|
PRESS CTRL+F AND THEN CTRL+M! THEN, TRY CTRL+B AND CTRL+M!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
|