cmd

Not enough Storage is available to process this command when running java utilities from command line

I'm on Windows Vista 64 bit, with a 64 bit jvm installed. I'm trying to use jstack and jmap -- two utilities that come with the JDK -- to peek into an application server's guts. This works fine on a windows xp machine, 32 bit. However, when I run these commands against the processid for a ColdFusion application server on this vista64 ma...

Execute CMD command from code

In C# WPF: I want to execute a CMD command, how exactly can I execute a cmd command programmatically? ...

Check for existance of all files before building a project

How would one go best about checking for existance of all files before building ? Let me explain; I mostly build stuff from the command prompt. No problems there, just put the build command and all in the one .bat /.cmd file, and run it. It works fine. But, for the normal running of my program, for example, I need several source files...

need same logic in windows as been done by SED below

sed 's/^#//g' < kam_account_calls.txt > kam_account_calls1.txt This command removes # from the start of the line. Please let me know how to adopt the same functionality in the Windows command shell. ...

Delphi: Program Execution and internal procedure/function calling from CMD or using Doubleclick on associated extension

So - recently I run on some problems determining from which way program was called, if in both times parameters is the same - like: /something /something. I associate icon with program at runetime and i can use cmd to call it, but, whenever i doubleclikc on associated file ( with the icon ), progam simply opens, but does not calls neede...

Batch/CMD: Finding out every single folder file meta.xml

Hello, i have a directory which contains the following: -directory -another directory -meta.xml -yet another directory -meta.xml ... So it needs to find in every directory 'meta.xml', all by itself (so that i dont have to type in every directory at the code) And i want that with EVERY meta.xml file a command is done. Is there ...

Windows batch script to copy and modify files containing redirect characters

We are trying to convert a bash shell script into a Windows batch script. We ship these scripts with our software product, and we cannot assume that the customer will have, or will be able to download, sed/awk/cygwin or any other non-standard tools. Therefore, the script must work with whatever tools come out-of-the-box with Windows. ...

Batch: Do what ThinApp does

Hello, i want my batch file to do something like VMWARE's ThinApp Setup Capture does. So, this is what it basically needs to do: first run a total computer scan at any files, folders, register keys etc, and make a total list of them. after the user wants, it will do everything again and check for the differences between those two lists...

how to I send an email from the command line on windows

I would like to send emails from a cmd batch file on windowsOne of my chalanges is that I don't have an smpt server, I'm using an microsoftexchange server in an internal network (no internet connection). Plz help, Thanks. PS: I do not want to use BLAT becuase it requires an SMPT server which I do not possess on my internal network. ...

How to create a script/macro on windows XP?

hi there*.sh im not really feeling home in the windows world but at the moment i have to use a laptop with windows xp installed on it... the point is, that i do not have administrator privileges. Im currently working on a grails application and therefore I have to set the JAVA_HOME and GRAILS_HOME eacht time, I start the machine... Could...

From cmd.exe script, how can I schedule a task to run on next boot (and never again)?

As part of a very simple cmd.exe install script, I need to run a program the next time the machine reboots. I don't want it to run after that (it's a one-shot configuration tool). The program will actually be another cmd.exe script but any example should do since I can run cmd /c on the script itself. What's the best way to go about do...

WINDOWS CMD: Why do i recieve errors when typing php-v at the prompt?

Im on windows xp. I receive errors at the prompt when i run the php-v command. The first error i receive is: The procedure entry point OCILobRead2 could not be located in the dynamic link library OCI.dll and then after that a slew of .dll errors. Fact is that all my .dll's are in D:Program Files\PHP\ext so im quite sure this is a p...

CMD: file extensions recognition?

I want to have my batch file to recognise the extension of the file the user types in in the following situation: The user has to type in a folder OR a .zip/.rar file. if its a folder, it should use GOTO :folder if its a .zip/.rar, it should use GOTO :ziprar (if it is possible without 3rd party software, than dont going to say about i...

CMD: Search for program and variable directory

Hello, i want to search for a program, like this: cd "C:\" for /f "delims=" %%f in ('dir /b /s myprogram.exe') do ( ) First problem: i want to let it search trough all hard drives (like 'cd My Computer' or something like that?) After that, it should make a variable of the directory in which that program is. How to do that in batch/c...

CMD: Batch as default program to open extension

Hello, i want to let my batch file CMD set itself as the default opener for a certain extension. Can anyone give me a code for this??? ...

keep cmd open while running a file

I'm learning C++ and I'm using Visual C++ Express and while running this #include <stdio.h> int main() { printf("Hello, World!\n"); return 0; } the cmd window closes so fast, I can't see Hello World is there anyway to prevent this? ...

Creating msbuild script to build, publish with specified app.config, and update from different locations.

I have googled everywhere for this solution and cannot find anything! I want to have a msbuild script to do the following: Build the project solution Publish the built solution with the specified app.config (app.config.debug or app.config.release) to a specified folder (Development or Production) With the specified configuration, know...

How to get the robocopy(or other cmd program) output in a WINForm?

Hi All I have a GUI program, which would call a cmd in this GUI program. In my case, the GUI call the robocopy to copy the file to a file server.And I want to show the progress in the GUI. So how can I get the output of the robocopy and display it on my GUI. Best Regards, Yongwei Xing ...

windows cmd connection to remote mysql dbf

is there a way of how to connect to mysql dbf on a remote server and run sql queries using windows command line? ...

Redirect stdout and stderr to a single file in dos

I'm trying to redirect all output (stdout + stderr) of a dos command to a single file: C:\>dir 1> a.txt 2> a.txt The process cannot access the file because it is being used by another process. Is it possible, or should I just redirect to two separate files? ...