QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I create a batch file to optimize D2_3DFX?

The Official D2_3DFX FAQ - Frequently Asked Questions
The best and easiest way to optimize D2_3DFX is to write a batch file (.BAT) to launch D2_3DFX.EXE for you. This BAT file will also include a number of environment variables which affect how the program behaves. If you have trouble with "Out of environment space" messages, see the solution above. Preparing the BAT file is easy: Just copy the text below into a text editor and save the file as a .BAT file in your Descent2 directory. You can call it whatever you want - d2_3dfx.bat is recommended.

Why do I see "Out of Environment Space" when trying to use a batch file to launch D2_3DFX?

The Official D2_3DFX FAQ - Frequently Asked Questions
When this happens, you indeed have run out of environment space (the memory space used for environment variables, which include your PATH statement, the location of your TEMP directory, etc.). To correct this problem, simply add the following line to your CONFIG.SYS and reboot your computer: Barring any serious setup or configuration problems in Windows, this solution will work for ALL DOS-based programs, BAT files and command-prompt shells.

How do I call a batch file from within another batch file?

Environment settings set by a batch file are not working.
It is possible to just enter the name of the batch file in a batch file which will run the called batch file however once completed it will not pass control back to the calling batch file leaving the rest of the calling batch file unrun. For example suppose we had the batch files If you then run calling.bat you would not get the line "Back to Calling bat" displayed as after called.bat terminates it does not return to calling.bat.

What is a batch file?

Environment settings set by a batch file are not working.
A batch file is just a text file with a .bat or .cmd extension that adheres to a syntax and a set of valid commands/instructions. To run a batch file just enter the name of the file, you don't need to enter the .cmd or .bat extensions. In line with programming tradition the first batch file we write will output "Hello World". Echo means output to the screen anything after it (the @ suppresses the command being printed to the screen, try it with and without the @).

What is D2_3DFX?

The Official D2_3DFX FAQ - Frequently Asked Questions
D2_3DFX is the name given to the unofficial 3DFX-enhanced "patch" for Descent 2. It is not a patch so much as a replacement for the main Descent2.EXE. (Note: This does not mean you can just download the .EXE and play D2 for free.) This program gives you the ability to play Descent2 on your 3DFX-based video card or accelerator, taking advantage of its enhanced graphical capabilities and drastically improved speed and smoothness.

Why does D2_3DFX give me the message "Unable to find entry point in DLL file"?

The Official D2_3DFX FAQ - Frequently Asked Questions
D2_3DFX requires what's called a "Glide driver". (Glide is 3DFX's Graphics Library, commonly referred to as an API, and is similar to OpenGL and Direct3D.) The file you need is GLIDE2X.OVL and is distributed as part of your 3D card's drivers. It should appear in your Windows directory. If necessary, copy this file from your Windows directory into your D2 directory. If you do not have the Windows Glide drivers installed, I recommend downloading and installing them.

What commands can be used in a batch file?

Environment settings set by a batch file are not working.
Windows NT 4.0 introduced some extensions to cmd.exe, so to use these make sure HKEY_CURRENT_USER\Software\Microsoft\Command Processor\EnableExtensions is set to 1. The following is a list of the more common commands you will use This is used to call one batch from inside another. The execution of the current batch file is suspended until the called batch file completes Used to stop batch file execution.

How can I pass parameters to a batch file?

Environment settings set by a batch file are not working.
When you call a batch file you may enter data after the command which the batch file refers to as %1, %2 etc, for example the batch file hello.bat if called as "hello.bat john" (you don't need to enter .bat extension, I just use it here as I used bad file names :-) ) expands %1 to a fully qualified path name. If you only passed a file name from the current directory it would expand to the drive/directory as well changes the meaning of n and x options to reference the short name.

How can I change colour within a batch file?

Environment settings set by a batch file are not working.
You can use the Windows NT Workstation 4.0 Color command to set the Command Prompt window colors. For example: sets the colour to yellow on black. The first part is background colour, the second the foreground and are:

How can I call a subroutine in a batch file?

Environment settings set by a batch file are not working.
An easy way to do this is to have the batch file call itself recursively and pass itself a couple of parameters, like so: Be careful! Recursive batch files can be dangerous, especially if your subroutine fires off another program. Note the syntax for calling subroutines (with parameters) and the special construct for returning (goto :eof).

How do I install D2_3DFX?

The Official D2_3DFX FAQ - Frequently Asked Questions
The first step to installing D2_3DFX is to install Descent 2 itself and ensure that it has been patched to version 1.2. (If you're installing from D2: The Infinite Abyss or D2: The Definitive Collection, D2 will already be patched to v1.2.) D2_3DFX requires version 1.2, so if you need a patch, go to the Descent Network's Patches Page Once you've done that, download D2_3DFX v1.

How can I create a batch testing file for 10,000 chemicals?

FAQ
The ascii file will be identical for both the OpenVMS and PC/Windows versions. The file will contain 10,000 records. Each record should have four fields: (1) CAS registry number (if unknown use 0), (2) activity in CASE units or other units, (3) SMILES code, (4) name of chemical. The standard MCASE program makes predictions based upon information in a single control database module (male rat, female rat, male mouse, or female mouse), and does not integrate data from several modules.

How do I search files for a string from a batch file/command line?

Environment settings set by a batch file are not working.
There is the basic find command which allows you to search one file at a time for string, however findstr is far more versatile. The command has the following switches FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/F:file] [/C:string] [/G:file] [strings] [[drive:][path]filename[ ...]] When you execute a batch file (or any other DOS command without a pif setting) the _DEFAULT.PIF file in the %systemroot% directory is used.

How do I enter freehand comments in my batch file without using 'rem'?

Environment settings set by a batch file are not working.
When NT batch file processing encounters the goto command, it ignores any lines in the batch file until it finds the appropriate goto label: WordPerfect 6.1 works, but 'Draw' returns peculiar anomalies. In earlier versions of WP it include 'PTR.EXE' which was a kind of printer driver program. In NT drivers edited with PTR add some mysterious control codes that cause the printer to print additional blank pages. The distribution driver with WP61 does not do this. See http://www.ntgamepalace.

How can I run another application or batch file from my Visual Basic .NET code?

Visual Basic Frequently Asked Questions
The answer for all of these examples is the same, you can use the classes and methods in System.Diagnostics.Process to accomplish these tasks and more. Example 1. Running a command line application, without concern for the results: Private Sub Button1_Click(ByVal sender As System.Object, _ Example 2. Retrieving the results and waiting until the process stops (running the process synchronously): Private Sub Button2_Click(ByVal sender As Object, _ Example 3.

How do I create a transcript file?

CS 241 Frequently Asked Questions (FAQs)
One way to do this is simply give the name you would like for the transcript file as a command line argument when you run the program. For example: Java Lab1 transcript.txt will create the transcript file "transcript.txt". In the PC environments there should be a menu item to give a command line argument. If you do not know how to give a command line argument then you can just add the following line to your program: Terminal.startTranscript("transcript.

How do I create and save a batch?

FAQ: Sales Manager Pro
When you open Sales Manager Pro, a new batch window will automatically appear. If you want to create a new batch, click File -> New Batch. To open a previously saved batch, click File -> Open Batch. Be sure to save your batches frequently as you list, in case of an error. To save a batch, highlight the batch window, and click File -> Save Batch. Name your batch, and click the Save button.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact