Home > Batch File > Need Help With DOS Batch File .

Need Help With DOS Batch File .


I am running windows 2000 and my DOS does not support the "CON" command. Come back whenever you want and/or need to.PS: I might be wrong, but is the syntax you used to explain, the JavaScript syntax? Back To Programming / Scripting / Coding Forum Need Help with DOS batch file .. My program then waits until I press the enter key. Check This Out

I will call each program by a letter to keep it simple. I want to automate that too. This allows one to funnel multiple-line typings down to just one simple command. For more information about batch file operations, see the following topics: Using batch parameters   Using filters  Using command redirection operators  For more information about commands that you can use in

Batch File Command

What I am trying to do is (cos i'm lazy), I want to create a script to automatically log in to a device and execute commands and then log off and ATNO/TW Super Moderator Posts: 23475Loc: Woodbridge VA 3+ Months Ago Just not sure why you don't use terminal service? Join over 733,556 other people just like you! CH001677 How to start Windows files and programs from a batch file.

Change these parameters, if they differ from your word processor and directory. Registration is fast, simple and absolutely free . Everything goes fine until the device asks for input from the user. Batch File Programming Manchester United Forever Faq Reply With Quote May 22nd, 2005,10:45 PM #11 No Profile Picture Arul20 View Profile View Forum Posts  Registered User Devshed Newbie (0 - 499 posts)

Join our site today to ask your question. Batch File Examples With these options, the batch file then becomes: :: WP.bat :: Runs WordPerfect and Returns to the Desktop :: @ECHO OFF C: CD\WP60 WP /r /d-F:\TEMP C:\BATCH\CLR Note to use It seems to be meeting my expectations, but I haven't wrote the script yet. The original question is "How do you ask for user input and then turnaround and use it in another command?" I beleve my answer succintly answered the question.

Whenever there is some common change in setting, I have to log on to each and every device and reconfigure. Batch File Commands Pdf Newer Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More... I would suggest looking into perl expect. Similar Threads - Need Help batch Help needed to solve LMC programming with the following!!!

Batch File Examples

Everything goes fine until the device asks for input from the user. You may employ the one you used above, but there are many other text editors available that you may find are more to your liking. Batch File Command On the Advanced Batch Files page, you'll be shown examples of more complicated batch files which use command-line parameters. Dos Batch File Variables Everything goes fine until the device asks for input from the user.

A simple batch file does not require any special programming skills and can be created by users with a basic understanding of MS-DOS commands. http://apksoftware.com/batch-file/need-help-creating-a-batch-file-based-on-last-modified-date.html Go ahead - this tutorial is just for basic learning purposes. BUT as I learnt over the past few days, DOS is not optimised for interfacing with devices (thanks ASBO). windows batch-file prompt share|improve this question edited Jun 27 '13 at 12:49 Nakilon 20.9k86792 asked Aug 3 '09 at 17:59 marc 1 "Terminate batch job (Y/N)?" typically shows up when Batch File Tutorial

It is free. Register Lost Password? Faq Reply With Quote May 17th, 2005,09:52 PM #8 No Profile Picture Arul20 View Profile View Forum Posts  Registered User Devshed Newbie (0 - 499 posts)  Join Date this contact form It is WAY faster than typing by hand all your usual commands.

CRT is popular in my office, however it has limited scripting ability. .bat File Tricks Draw music in software What is a person who fakes responses on a survey? Telnet to a device 2.

What I want to know is: How do I simulate the "Enter" key press in my batch program?

You may wish to investigate a more general solution - like AutoIt. That's how one gets around the "are you sure you want to delete all the files on your computer?" prompt. Also note that a trailing space on the "set" line will show up between the prompt and user input. Batch File Commands Wait PATH STATEMENT Next, modify your path statement as found in your "AUTOEXEC.BAT" file to include this new directory.

Daniel - YourTechOnline.com technician yto_daniel, May 22, 2005 #15 Sponsor This thread has been Locked and is not open to further replies. Everything goes fine until the device asks for input from the user. right to left or left to right? navigate here E.g "Press any key to continue .. " Or "Press enter to continue .. " etc The program then waits for the user input.

Since the batch file changes to the correct directory for WordPerfect, DOS does not have to search the path to locate the WP executable file. haha .. Once you have set your variable, you can then go about using it in the following fashion. @echo off set /p UserInputPath= What Directory would you like? arul20, May 17, 2005 #4 asbo Joined: Sep 21, 2001 Messages: 507 Ah, I understand now.

I am writing a batch file to automatically run some commands by telnetting to a network device.