command-prompt

powerful command line utility

Hi guys, Can anyone recommend me a better command-line utility than the built-in 'cmd' window that comes with winXP. any recommendation would be helpful. Vote for others if you support it so i'll get a better sense what the community thinks. Thanks ...

Add Command prompt in VS 2008 Express Edition manually

Hi all, To add the Command prompt in VS 2008 express edition, i have done the following steps: Tools->ExternalTools->Click on Add-> Then I have entered the following information. Title: Visual Studio 2008 Command Prompt Command: cmd.exe Arguments: %comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86 Ini...

Run Command prompt commands through flex.

Can we run command prompt commands (like copy, rename etc) from an AIR or flex application? I thought of creating a bat file and running it using fscommand, but that does`nt serve my purpose. ...

Suppress command window from started command-line application with .NET

I have a module that needs to run a small .Net command-line program to check for updates. Everything is working great, however I am having trouble suppressing the Command Prompt output from being shown. The app has it's own Windows Form that it pops up if it detected an update. Updating needs to run as a seperate app due to the fact tha...

Problem creating AVD on command prompt in windows XP

I am the beginner for android development. i followed the procedure as specified in developer.google.com . for installing i Tried to crete AVD(Android virtual device) through command path.I executed at command prompt. android create avd --target 2 --name my_avd But the Error is coming "Error: Target id is not valid. Use 'android.bat li...

Converting from ascii to utf-8 with Python

Hello. I have xmpp bot written in python. One of it's plugins is able to execute OS commands and send output to the user. As far as I know output should be unicode-like to send it over xmpp protocol. So I tried to handle it this way: output = os.popen(cmd).read() if not isinstance(output, unicode): output = unicode(output,'utf-8'...

Python, trying to run a program from the command prompt

Hi All, I am trying to run a program from the command prompt in windows. I am having some issues. The code is below: commandString = "'C:\Program Files\WebShot\webshotcmd.exe' //url '" + columns[3] + "' //out '"+columns[1]+"~"+columns[2]+".jpg'" os.system(commandString) time.sleep(10) So with the single quotes I get "The filename, di...

How to recognize ansi color escape codes in Windows7 64 bit command terminal

I have tried Ansicon and I still cannot get ansi escape sequences to become recognized and interpreted in my CMD.EXE command prompt on Windows 7 64 bit. Has anyone been able to work this correctly and get a colorized console with this OS? ...

How can I get python in the command prompt on Windows?

I have just installed Python on my Windows 7. I thought that after that I will be able to run python on the command prompt but it is not the case. After the installation I also found out that I can run the python command shell. This is nice. But what should I do if I want to save my program in a file and then I want to run this program (...

How to make a user friendly start of a Python program?

I have a Python program (GUI application). I can run this program from the command prompt on Windows (command line on Linux). But it can be too complicated for users. Is there an easy way to initiate a start of the program with a click (double click) on a pictogram (a small image on the desktop)? ...

Using C++ to Merge .reg files

Hey, I am simply trying to merge a .reg file into my registry using a very basic c++ program. The code is as follows: #include <iostream> #include <iomanip> #include <string> #include <fstream> #include <stdlib.h> #include <cstdlib> #include <stdio.h> #include <windows.h> using namespace std; int main() { string file = "regedit.e...

bash command to repeatedly emulate keypress on a proceess

The nmap tool has such a feature - when you're performing a scan [#nmap -A -T4 localhost] and press "Enter" - it displays kind of status information "Timing: About 6.17% done" Question - how can I force this keypress to happen repeatedly without touching a keyboard in bourne shell? ps: just trying to find a work-around for a bug in php...

Getting results of perl -w tag into a file

Is it possible to add the -w tag to the first line of a perl program, then run the program from a shell like bash or dos and write all of the warnings into a file? perl somescript.pl > somefile.txt This is a throwback to desk checking COBOL programs at school. I'd like to have all of the warnings in front of me on a piece of paper so ...

Sending commands to stdin and sending end of transmit (Ctrl+D)

Hi All, I want to run the following code. The application that I'm calling expects commands like User-Name=albert next line, another command and so on, until you are done. If you were to enter this manually from command line, you would type command, press enter, type command press enter. Right at the end AFTER PRESSING ENTER after the...

Batch Scripting Question - Search and Replace a Variable in a Variable?

Hello all! I have a problem. I have a batch file which imitates the UNIX cd command. It takes a UNIX-style path inputted by the user, saves it as a var called upath2, converts it to a Windows-style path, and cd's to that directory (e.g. "/program files/7-zip" will become "C:\Program Files\7-Zip"). The Windows-like output will be saved a...

Problem with Java Runtime.exec() when trying to start Nmap.exe

Hi there, I'm using Java 1.6 , Eclipse , Windows 7. I'm trying to run commands in a java program to use NMAP. The code : String cmd[] = { "cmd.exe", "/c","start notepad.exe"}; Process pr = rt.exec(cmd); works fine, but the code: String cmd[] = { "cmd.exe", "/c","start nmap.exe"}; Process pr = rt.exec(cmd); simply doesn't. I...

javac command prompt parameters

I installed java on my machine and I wanted to compile this group of source code. But when I opened up the command prompt and typed in javac, the command prompt said it was an unknown parameter. The same thing happened when I wanted to build something with ant (I had the build.xml if you are wondering) and the same thing happened. How ca...

How do I write to a command prompt that is already open?

I need to write one line at a time (user iterative process) to a command prompt that is already open. I'd like to use VB or VBA. I know there is AppActivate, but then how do you write to it? The command prompt is run by another program (that I can't touch). Suggestions? ...

Issues running python scripts in Command Prompt (Specifically with command line arguments)?

I am trying to run my python scripts in the command-prompt without calling python.exe first. I am specifically doing this in relation to running django-admin.py. I have C:\Python26 and C:\Python26\Scripts in my PATH. However, if I try running django-admin.py by doing: django-admin.py startproject helloworld I get the message: T...

Can I get an integrated shell (command prompt) in Eclipse?

Is there any plug-in that provides an integrated shell (i.e. command prompt) in Eclipse? The console only seems to be for interaction with a running program. I've found a reference to the plug-in Open extern but that opens an external command window, and I'd rather have it integrated with Eclipse. ...