Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Batch file programming

Author
Message
QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 20th Nov 2003 23:49
I'm doing some batch file programming, and I hate having to hit enter, F6 then enter instead of just plain enter. Is there any way i can translate enter to enter F6 enter? Google hasn't helped me at all.

Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 20th Nov 2003 23:57
I have no cluw what batch file programming is, but isn't CTRL+Z undo?

Beauty, eh? RoooooOoooooKoooooKoooooRoooooOoooooKoooooKooooo!
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Nov 2003 00:02
No, CTRL+Z ends the batch entry if you do something line COPY CON G.BAT - it returns you back to the command line.


Mirrors are more fun than television. Well, that was fun, in a not-so-fun sort of way...
QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 21st Nov 2003 00:11
Ctrl Z is the same thing as pressing F6, and all it does is add the text ^Z, so you still have to press enter. I mean is there a way to translate it so you ONLY have to press enter?

QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 21st Nov 2003 00:26 Edited at: 21st Nov 2003 00:27
Oh wait, figured it out.

I'm writing a chat program, where the user inputs the name of the person he wants to talk to then the message. I just didn't want to have to have the user pres enter F6 enter each time.

But I found the code to make it work. yay!

And I just write my batch files in notepad, not at the cmd prompt

QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 21st Nov 2003 00:40
..when I RUN the batch file, there's a user input PROMPT. The user INPUTS something, then has to press ENTER to complete the input. I wanted it to be just enter, and not enter F6 enter, and it works now.

Andy Igoe
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 21st Nov 2003 10:44
Back in the day i'd have used a TSR to do it, but I seem to have found the thread all a bit late and frankly I dont think I could even write a TSR anymore, without DBP, i'm lost


God created the world in 7 days, but we're still waiting for the patch.
QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 21st Nov 2003 19:00
Next problem, what's the syntax to change the directory to where a file is written? for example, I want to write to my Q drive with
ECHO.>> USRIN.TMP

but I want USRIN.TMP to be on the Q drive. What's the syntax for that?

spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 21st Nov 2003 19:10
You just stick Q:\ before filename


Boo!

Login to post a reply

Server time is: 2024-11-24 06:40:39
Your offset time is: 2024-11-24 06:40:39