command-prompt

How can I disable DLL Caching in Windows Vista via CMD?

I know Windows Vista (and XP) cache recently loaded DLL's in memory... How can this be disabled via the command prompt? ...

Adding command recall to a Unix command line application

I'm working on a command line application for Solaris, written in Java6. I'd like to be able to scroll through a history of previous commands using the up and down arrows like many Unix tools allow (shells, VIM command mode prompt, etc). Is there any standard way of achieving this, or do I have to roll my own? ...

Using the DOS "start" command with parameters passed to the started program

I have a Virtual Machine in Virtual PC 2007. To start it from the desktop, I have the following command in a batch file: "c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc "MY-PC" -launch But that leaves a dos prompt on the host machine until the virtual machine shuts down, and I exit out of the Virtual PC console. That's an...

Why is there a difference between the encoding of the Windows Command Prompt vs. a batch file?

For example, suppose I have a batch file called 'test.cmd' and it simply contains: echo %1 I can call this directly from the command prompt with 'test.cmd some¬arg' and the result is that the string 'some¬arg' is printed. However if I place that same call in a second batch file, called 'tester.cmd' for the sake of argument, and I cal...

How do you delete N files of X type from Y subfolders from a Windows batch file?

I'm trying to write a windows batch file that can delete files from subdirectories. I would rather not hard code the directory structure in, so I can use this process with other projects. I need to delete files of X type I have the parent folder C:\MyProject There are Y subfolders C:\MyProject\? There are N files to delete Is there...

How to create a file without a Command Prompt window

I'm using WinRAR SFX module to create an installation, and use its presetup option to run some preliminary tests. Since wscript can only accept vbs file, and not the script itself, I first run "cmd /c echo {...script code...} > setup.vbs", and then I run "wscript setup.vbs". The run of the first cmd command opens a brief command window,...

FFmpeg: A few errors including invalid frame size and incomplete frame

Hello all, I use this ffmpeg command to take clips from a large VOB files that is on a DVD: ffmpeg.exe -i E:\VTS_02_2.vob -ss 00:00:57 -t 00:16:15 vids\VTS_02_2.vob It worked first for a VOB file but then I got these errors: c:\ffmpeg>ffmpeg.exe -i E:\VTS_02_2.vob -ss 00:00:57 -t 00:16:15 vids\VTS_02_2.vob FFmpeg version SVN-r15625,...

What is the native way to create a shortcut (.LNK file) from the Windows XP command line?

EDIT! Sorry to change the question on everyone, but I am really just asking: How do I create a shortcut (.LNK) file from the command line with as little outside help as possible? I really don't want to run a VBscript or to download a program to do it for me. Is it really that hard? Thanks to everyone who provided exceptional answers...

Compiling/Executing a C# Source File in Command Prompt

Pardon my ignorance but how do you compile a .CS file from a command-prompt window? And how do you execute? ...

Prevent command prompt from closing automatically (CS Script)

I'm experimenting with CS-Script and my problem is that each time I run a script the console window is automatically closed when the script exits. How can I prevent this from happening? ...

Can I mask an input text in a bat file

I am writing a batch file for execute some other programs. In this case I need to prompt for a password. Do I have any way to mask the input text. I don't need to print *** characters instead of input characters. Linux's Password prompt behaviour (Print nothing while typing) is enough. @echo off SET /P variable=Password : echo %vari...

How to make output filename equals to folder name

I have created a batch file to output a folder content into a list of names. @echo off cd /d %1 Title %~f1 dir %1 /b /l > %1\..\file_list.txt How can I make the file_list.txt to be "dir name".txt? For example I am at folder ABC and I want to output the dir list so that the final text file will be named ABC.txt instead of file_list.tx...

Is it possible to pass an executable to an MS-DOS program?

hi, Is it possible to pass an 'ELF 32-bit LSB executable(a.exe), version 1 (SYSV)' to a 'MS-DOS executable (EXE) (b.exe), OS/2 or MS Windows' as an argument. the reverse also? regards Renjith G ...

How can I log command prompt.

hi, I want to log my command prompt details that i have typed. Regards, Renjith G ...

Modify cmd.exe properties using the command prompt

Isn't that nicely recursive? I've got a portable command prompt on my external drive, and it has a nice .bat file to configure some initial settings, but I'd like more! Here's what I know how to set from .bat: Colors = (color XY) where x and y are hex digits for the predefined colors Prompt = (prompt $p$g) sets the prompt to "C:\...

How do I stop a command prompt from appearing in a Win32 C application?

I really have no idea why this is happening... I created a win32 application in emacs, and whenever I make it and run it (not through the command prompt), a command prompt window pops up under the window. If I build a win32 application in Code::Blocks, and just run its default template, then it runs without a command prompt window. I loo...

Python and reading lines

When i run an .exe file it prints stuff out to the screen. I don't know the specific line of where i want printed out but is there a way I can get python to print the next line after one that says "Summary" ? I know that is in there when it prints and I need the info right after. Thanks! ...

Visual Studio Command Prompt vs. Regular Command Prompt?

When I open a command prompt through Visual Studio, I get: Setting environment for using Microsoft Visual Studio 2008 x86 tools. C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE> What kind of tools are available, and what are the most common uses of this command prompt? ...

How do I tell MSTEST to run all test projects in a Solution?

I need to know how to tell MSTEST to run all test projects in a solution file. This needs to be done from the command line. Right now I have to pass it a specific project file, I'm trying to get it to run from a SOLUTION file. I'm hoping this is possible, because in Visual Studio, hitting Ctrl+R, A, runs ALL tests in the currently ope...

WinXP: Take screenshot in a script

Which tools can I use to take a screenshot of a Windows desktop from a script? I'm running poolmon.exe in a command prompt and I need to capture the output. So a solution which returns text would be preferred but I could write a simple converter for that. If the tool could capture a single window, that would be great. If it would even w...