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

Frequently Asked Questions

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.

Can I run it via the command line for batch files, etc?

CD BURNER.CA - Acoustica MP3 To Wave Converter PLUS! Frequen...
Note that it needs the quotes around the path to the MP3 and the c needs to be a capital C. Of course, the MP3 to wave executable directory must be in your path variable or you must put the explicit path to the executable in the command line call.

How can I stop my batch files outputing the command to screen as it runs it?

Environment settings set by a batch file are not working.
at the top of your batch file. To stop a single command being output to the screen just put @ in front of the command.

How can I perform a batch action on a list of files from the command line?

English Windows FAQs 2003
the command outputs only the name of each file in the current folder, which the 'dir /b *.*' component can do all by itself. However, you can edit the "do" portion of the command to perform a secondary task. For example, you can add the name of a batch file and the %a parameter to call the batch file on each .msg file: In addition to outputting the name of each file in the specified folder, this command adds the current date and time to the end of each .msg filename.

Can I run AutoSplit plug-in from command-line or batch file?

AutoSplit Frequently Asked Questions
Yes, AutoSplit plug-in can started from outside of Adobe Acrobat. Detailed instructions on how to execute document splitting sequence from command-line or a batch files can be found here.

Is there a command to replace a string in multiple files together?

SciTE FAQ
It is possible to replace a string in all opened buffers with the Replace in Buffers button in the Replace dialog. However this button is hidden by default, it can be displayed with find.replace.advanced=1.

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.

Will TapeCopy work with batch files or be run from the command line?

TapeCopy - Frequently Asked Questions (FAQ)
TapeCopy works with a simple interface or it can be command line / batch file driven for easy, automated operation.

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 @).

How can I search a batch of sequences with BLAST?

BLAST: Basic Local Alignment and Search Tool
Web megablast. This program is optimized for aligning nucleotide sequences that differ slightly as a result of sequencing or other similar "errors", and is good for scanning a large number of EST type sequences (about 500 kb in length) against a large database. You can import a file of EST sequences in FASTA format or as a list of GenBank accessions or GIs.

How can I call MSXML from the command line to do batch processing of XSLT?

Unofficial MSXML XSLT FAQ
There is now a command-line utility with source code available that allows fast command-line processing of XSLT. Since MSXML is a COM object, you can write any .vbs, .js or other Windows Scripting Host (WSH) file to launch MSXML from the command line. Ken Holman provides a comprehensive treatment of calling MSXML from command-line script to supplement the book "Practical Transformation Using XSLT and XPath".

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).

Can I run NTBACKUP from the command line?

Environment settings set by a batch file are not working.
ntbackup <operation> <path> /a /b /d "text" /e /hc:<on/off> /l "<filename>" /r /t <backup type> /tape:n /v This will be backup . If you wanted to eject a tape you could enter eject (but must also include the /tape parameter) The list of drives and directories to be backed up. You may not enter file names or use the wildcard character. To backup multiple drives just put a space between them, e.g. ntbackup backup c: d: etc..

How can I display my help file from the command-line?

FAQ
If you're using NT/Win2000 then replace the "winhelp.exe" below with "winhlp32.exe". Select "Start | Run" from the taskbar and type in:-

How do I open a file with a name beginning with '+' from the command line?

The GNU nano editor FAQ
If a command line option that begins with '+' is followed by another option, the former is always treated as a starting line number and the latter is always treated as a filename. If a command line option that begins with '+' isn't followed by another option, it's always treated as a filename. Examples: To open '+filename.txt' starting on line 1 and 'filename.txt' starting on line 10 (if nano has been compiled with multibuffer support): nano +1 +filename.txt +20 filename.txt

How do I Move, Copy, or Delete a File from the Command Line?

Department of Mathematics Computing Documentation, Duke Univ...
ls : This command stands for List. If you type ls and press enter, a list of files in the currend directory will be displayed. Useful options include ls -C which will show the list in a column format, and ls -l which will show the list is a long format with more information. You may also combine these with the option -a to show "All" files, including those that begin with a . and are thus called "hidden" since they do not display without the -a option, e.g. ls -al.

How to print a PDF file from command line?

MTU Department of Computer Science
If you don't specify the printer, the file is printed at the default printer. The default printer is the nearest printer from your computer. It is set in the environment variable PRINTER. You can view the current default printer using the following command:

Explore Other Topics

Why isn't my external USB Hard drive recognized when I plug it into the back of the CM4?
How do I install the .NET Framework?
My safety glasses scratch easily. Do you have a solution?
What can I do about Uneven Pigmentation?
What is the best way to maximize fat loss?
How soon can I use Implanon® after I have had a baby?
How were standards set for raising an organic chicken? Who is Oregon Tilth?
What are the causes of tendonitis and tenosinovitis ?
What do I need to provide to make a Wire Transfer?
More Questions >>

© Copyright 2007-2009 QueryCAT
About • Webmasters • Contact