Train-Sim.Com
Microsoft Train Simulator

Anyone who knows how to make .bat files

Notice to all visitors and members of the Train-Sim.Com message forums:
If you plan on using a signature banner in your posts, we would like to remind you that there is a maximum size for banners. That maximum is 450 pixels wide by 120 pixels high, and not to exceed 25k. Your compliance is appreciated. FORUM RULES Problems? There are two common reasons for problems with logging in and posting messages. The first is that you are running a firewall that prevents your messages from being sent to the server. The other is that you have cookies disabled; the DCForum software requires cookies to work properly.

Previous Topic | Next Topic

Printer-friendly copy Email this topic to a friend

Reading Topic #20381

Member since Apr-7-03 · 1461 posts

Anyone who knows how to make .bat files – image 1

Could someone teach me how to make a .bat file , I am not a Newbie but I am only getting interested in this now , Could someone help me to it or tell me where to read to find out how ?ThanksSouthern Pacific will live on forever in the hearts of the Red and Gray Railfans Anyone who knows how to make .bat files – image 2

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

RE: Anyone who knows how to make .bat files, sniper297, Oct-09-03, 00:00 AM, (1) RE: Anyone who knows how to make .bat files, smp11512, Oct-09-03, 00:05 AM, (2) RE: Anyone who knows how to make .bat files, ajwtcb, Oct-10-03, 00:12 AM, (3) RE: Anyone who knows how to make .bat files, smp11512, Oct-10-03, 01:07 AM, (4) RE: Anyone who knows how to make .bat files, derekmorton, Oct-10-03, 01:36 AM, (5) RE: Anyone who knows how to make .bat files, oldrailfan, Oct-10-03, 01:59 AM, (6) RE: Anyone who knows how to make .bat files, derekmorton, Oct-10-03, 02:47 AM, (8) RE: Anyone who knows how to make .bat files, smp11512, Oct-10-03, 02:40 AM, (7) RE: Anyone who knows how to make .bat files, derekmorton, Oct-10-03, 02:48 AM, (9) RE: Anyone who knows how to make .bat files, sniper297, Oct-10-03, 08:06 AM, (10) RE: Anyone who knows how to make .bat files, OTTODAD, Oct-10-03, 09:14 AM, (11) RE: Anyone who knows how to make .bat files, lnorth, Oct-10-03, 02:43 PM, (12)

Conferences | Topics | Previous Topic | Next Topic

Member since Apr-7-03 · 1461 posts

RE: Anyone who knows how to make .bat files

Anyone who knows how to make .bat files – image 3

Thanks , Sniper , Southern Pacific will live on forever in the hearts of the Red and Gray Railfans Anyone who knows how to make .bat files – image 4

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Member since Aug-1-03 · 57 posts

RE: Anyone who knows how to make .bat files

Did you figure it out OK Shane?It's really just typing the DOS commands into a notepad window, then saving the file with the bat extension. So, if you are familiar with DOS commands it should be pretty easy for you.

Andy Whitcomb

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Member since Apr-7-03 · 1461 posts

RE: Anyone who knows how to make .bat files

Anyone who knows how to make .bat files – image 5

LAST EDITED ON Oct-10-03 AT 01:08 AM (EDT)

Yeah , I figured out the type the Command and save it part but I am not familiar with the commands ( Yet ) so I am learning a lot from this , Thanks for asking Southern Pacific will live on forever in the hearts of the Red and Gray Railfans Anyone who knows how to make .bat files – image 6

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 2100 posts

RE: Anyone who knows how to make .bat files

Hi Shane,I have an original dos manual with all the commands.
I could scan the relavent sections and email you?Derek

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Member since Sep-12-02 · 422 posts

RE: Anyone who knows how to make .bat files

LAST EDITED ON Oct-10-03 AT 02:00 AM (EDT)

Derek,
What version of DOS? I think they're up to 7.(Something) now.
And: do all of the old DOS commands still work?

JOhn
Oldrailfan
Railfan means anything on rails! Trains Trolleys Rollercoasters - you name it.Anyone who knows how to make .bat files – image 7

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 2100 posts

RE: Anyone who knows how to make .bat files

>What version of DOS? I think they're up to 7.(Something) now.
>And: do all of the old DOS commands still work? The books that I have is for the real dos, 6.22.
Anything after that was $bills attempt at something else.
All the dos commands should still work on Win9x and ME.Windows NT4, 2000 and XP do not have dos underneath them, they are a 'real' operating system.Derek

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Member since Apr-7-03 · 1461 posts

RE: Anyone who knows how to make .bat files

Anyone who knows how to make .bat files – image 8

Thanks Derek , I would most apperciate that , My address is smp1151@hotmail.com , Thank you Southern Pacific will live on forever in the hearts of the Red and Gray Railfans Anyone who knows how to make .bat files – image 9

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 5654 posts

RE: Anyone who knows how to make .bat files

If you scroll down the page on the link in post #1, there's a bunch of links there, this one;http://home7.inet.tele.dk/batfiles/msdos7/has a list of DOS 7 commands. Note that Windows XP is actually WIN NT 4 or something, so some of the old DOS commands, like "CHOICE", don't work. There are alternative XP commands, links to those from the first link. Both lists look complete to me, you can copy and paste the text and print it out, and you'll have your own manual! XCopy
IndexCopies files and directory trees. XCOPY is similar to the COPY command except that it has many more switches that allow considerable control over exactly what is copied when using wildcards..
Syntax:XCOPY source Switches:
source The file(s) to be copied. Although this must be a single parameter, it may include multiple files specified using wildcards (* or ?).
destination The location and/or name(s) of new files.
If destination is omitted, the files are copied to the current directory.
If destination refers to a directory that does not exist, the directory is created.
If destination could be either a file or directory, you are prompted for instructions. (See Notes below).
Scope: By default, XCOPY will confine its operation to files in the source directory.
/E Copies the complete subdirectory structure of source and all files therein.
/S Copies the complete subdirectory structure of source and all files therein but does not copy empty subdirectories.
/T W Copies the subdirectory structure of source but does not copy any files and does not copy empty subdirectories. To include empty subdirectories, use with the /E switch.
Filters and Attributes: By default: XCOPY will not copy files which have 'system' or 'hidden' attributes set;
copies of 'read-only' files do not have the read-only attribute set, and
all copied files have their 'archive' attribute set. .
/A Only copies files with the archive attribute set (ie. files that have not been "archived" using xcopy, msbackup, etc.).
/M Only copies files with the archive attribute set, turning off the archive attribute of the source files.
/H W Includes files with hidden and system attributes set. This switch does function in Dos mode when using the WindowsME version of XCOPY.
/K W Copies files without resetting the read-only attribute, if set.
/R W Overwrites read-only files.
/U W Only copies files in source that already exist in destination. Can be used with /D to update files with more recent versions. This switch has a bit of a bug - see Note 5 below.
/D:date Only copies files with a 'last modified date' the same as, or later than, date.
If date is not specified, all files are copied except for same-named files in the destination directory that have a more recent 'last modified date' than the one in source.
Note that dates after 2000 must include the full year (01 is read as 1901, not 2001).
The format for date depends on the COUNTRY setting being used. (For US it is mm/dd/yy(yy))
Prompts By default:
XCOPY prompts before overwriting files in destination with files in source of the same name (note: this default can be modified using the COPYCMD environment variable - see SET).
XCOPY prompts for instructions if there is ambiguity whether destination is a directory or file.
If an error occurs, an message is displayed and XCOPY quits.
/I W Forces destination to be treated as a directory. The file/directory prompt is suppressed.
/Y Overwrites existing files without prompting.
/-Y Prompts before overwriting existing files.(This is the natural default, and overwrites any changes via the COPYCMD environmental variable
/W Displays a prompt before starting to copy files.
/P Prompts for confirmation before creating each destination file.
/F W The /F switch is specified as "Displays full source and destination file names while copying" but actually does nothing.
/Q W Does not display file names or any other messages while copying.
/C Continues copying even if errors occur.
Miscellaneous
/L W Displays files to be copied but does not actually copy them.
/N W Copy using the generated short names. This is necessary when copying from a VFAT volume to a FAT volume.
/V Verifies that new files are readable (does not compare with the original - see VERIFY). This switch is ignored when XCOPY is running in a Windows Dos box.
Footnote
W Switch is valid when XCOPY is used in a Dos box under Win95/8/ME but not in Dos mode.

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 2888 posts

RE: Anyone who knows how to make .bat files

There still is an equivalent of the DOS Prompt in WIN-XP, found in Programs\Accessories\Command Prompt, you can "Shortcut" to the Desktop for easy access.Most of DOS-6.22/7 commands still work as before, but using "Long Path/File Names" Quotation Marks " need to be used to enclose names containing "Spaces" when used with Run or in Batch Files, i.e:XCOPY C:\"Program Files"\"Microsoft Games"\"Train Simulator"\*.* D:\MSTS-Archive /S /Ycopies all to the destination folder, asking what type the destination is if it does not exist already, creating Sub-Folders in the process, overwriting existing files.Typing XCOPY /? at the WIN-XP command prompt or with "Run" still shows all the available Command Line options.O t t o

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Member since Aug-31-02 · 20 posts

RE: Anyone who knows how to make .bat files

The best information that I have found about batch files is "Windows NT Shell Scripting" by Tim Hill. It works for Win9X, NT, W2K, and XP.Documentation for the MS-DOS commands can be found from the Help on the Windows Start menu. From the Help's contents, choose Reference and then MS-DOS Commands. At least, that is where it is on W2K.Larry

Alert | IP


[ Home | MSTS Forum | MSTS FAQ | File Library ] Copyright © 2002 by Nels Anderson. All Rights Reserved.

Restored from the Train-Sim.Com archive, captured October 28, 2003. About this archive.