command-prompt

Getting windows to start R in batch mode using the Start command

I know I must be making a simple syntax mistake, but I want to have a windows batch file that fires up 9 instances of R and runs a different routine in each one. I want these to run simultaneously (i.e. asynchronously). I can fire up 9 command prompt windows and type a command in each one, but it seems like with the START command I shoul...

Writing my own custom command line "wrapper" for windows

I have never been a fan of the windows command line. I have tried tools like powercmd and liked them, but most are not distributed for free and I don't relish the thought of paying for something that I think I could write myself. I want to write my own command line wrapper similar to powercmd that allows for these properties: Custom fo...

c# program works from cmd prompt but not run seperately?

I would post a snippet, but I honestly have no idea what part of my code could possibly be doing this. The program is sizable, I don't want to make you all wade through it. What kinds of things could possibly be the cause of this? Everything works perfectly when called from the command prompt: "readoo.exe". But when I click the exe in it...

How wmic enable horizontal scaling on command prompt window

When open command prompt window. I found black fixed size windows that can scaling only vertical direction, but when i type wmic command it seem horizontal scaling also available. I just suspect what method that wmic force command prompt windows like that. Does one can explain? ...

How do I use colour with Windows command prompt using Python?

I'm trying to patch a waf issue, where the Windows command prompt output isn't coloured when it's supposed to be. I'm trying to figure out how to actually implement this patch, but I'm having trouble finding sufficient resources - could someone point me in right direction? Update 1 Please don't suggest anything that requires Cygwin. ...

How to maximize command prompt in windows xp

Hi, I am on windows xp, Is there any way to maximize my cmd.exe window? I am doing some mysql and it is so difficult to read results of my queries in such a small window. Why maximize does not really maximizes it? Is there a way for maximizing? Or maybe an alternative command prompt I can use? thanks ...

Displaying text with VBScript when running from command prompt issue.

I have a script that pings a list of computers and tells me if I can be reached. For each computer I would like it to display whether or not it was reached on the command prompt, not as a pop-up message. I did Wscript.Echo, but it does a pop-up for each computer so it's really annoying to have to click OK over a 100 times. How can I mak...

How to copy files from folder tree dropping all the folders with Robocopy?

I have the following folder structure: FolderA --Folder1 --Folder2 --Folder3 ... --Folder99 Folders 1 through 99 have files in them. All I want to do is to copy ALL THE FILES into ONE FOLDER, basically do a FolderA copy, and wipe out Folders 1-99 keeping all the files. I'd like to do it with Robocopy from cmd.exe if possible (Windo...

Why does selecting text in a Command Prompt hang the running application?

We have an application that outputs logging info to stdout. However, if it is run in a command prompt window, you can use Mark to select text from the console. If you leave the text selected, the application just hangs and doesn't proceed, until you deselect the text (for example by pressing Enter to copy the selection into the clipboard...

Windows Scripting: What and How to do this? Batch Files or Something else?

Hello all, What I am trying to do is have some sort of script run in windows (ideally .cmd file/batch file) when double clicked it should create a short-cut menu in the start menu and set a path in the windows registry (i think thats what it is called) so that next time, for example, all I have to is get the variable JAVA_HOME to get th...

How can I interact with the command prompt from C# code?

I am trying to interact with the windows command prompt from code. My goal is to display the prompt, put in some command, display the output, and repeat. But can't seem to get the first three working at the same time. private void button2_Click(object sender, EventArgs e) { Process proc = new Process(); pro...

F-N Shortcuts in the Windows' Command Prompt

Hi, Where can I get some explanations on what F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11 and F12 do in the Windows' Command Prompt? Are there some other useful shortcuts for Windows' Command Prompt? Thanks, Afriza N. Arief ...

c#: transform a string targeted for the unix shell use for the windows command prompt.

Here is a sample string I got off a socket stream. \033[H\033[J\033[1;30HSUPERVISOR MAIN MENU\033[6;5H 0. Exit Exit\033[7;5H 1. Help Display help\033[8;5H 2. Control Calling lists and users\033[9;5H 3. Campaign Campaigns\033[10;5H 4. Manage If you want to see the output I expect open a unix/linux shell, t...

javac not working in windows command prompt

I'm trying to use javac with the windows command prompt, but its not working. After adding the directory "C:\Program Files\Java\jdk1.6.0_16\bin\" to the end of the environment path variable, the java command works fine, but using javac gives me the error: 'javac' is not recognized as an internal or external command, operable program or...

How do I get colour with Windows command prompt using RSpec in Ruby?

In other o/s RSpec returns nicely coloured results (red, green etc). However in the windows (Vista) command prompt my text output is just plain old boring white. How can I bring colour to my RSpec test results? Thanks Evolve ...

Ruby prompt when stdin isn't a terminal (for Notepad++ explicitely)?

Hello, I'm a Notepad++ user. One of the features I like from that software is the fact that you can have a "console" in the UI (which is not an actual terminal), and that you can run some command line interpreters from there. FYI, to get the console running in Notepad++, you need to have the NppExec plugin installed, and then go to Men...

How to print out encoded Asian characters(gb2312) on command prompt?

Hi all: I am working for a company that uses the Python programming language version 3.1 as a causal work now. And I've encountered this problem: how to print out some encoded Asian characters(Chinese, Japanese, Korean) on command prompt? Done a bit research and tried, but got no luck: import sys import codecs print(sys.getdefaultenco...

How can i Compile a C program on Dos prompt using tcc and tc

I want to compile c program on dos prompt using tcc as well as tc without using c editor. please give the full procedure. ...

Building an Evironment Variable with SET using a FOR loop in Command Prompt

Hi, I am having trouble with the following command prompt commands (in Windows XP). set SOMEVAR= for /F %i in (1 2 3) do set SOMEVAR=%SOMEVAR% "%i" echo %SOMEVAR% I expect it to build the SOMEVAR variable so that it contains each item in the for loop in quotes, separated by a space:  1 2 3 However what this is what I get...

How to communicate between command prompt and vb.net program?

I wanted to make a vb.net version of this trick used to hide files in pictures: http://www.online-tech-tips.com/computer-tips/hide-file-in-picture/ I don't have any idea on how to do this, but first is it possible? In my mind I have to use an open file dialog box to do this. ...