I have run simulations on software (named CMG) using command prompt. The command prompt works well in all respect of running the software as well as generating reports and output files. To generate an ouput file (.rwo format) containing the desired result, we have to run the executable of the report program which uses a parameter file (....
Hello all,
I have a batch script that checks if a registry key exists and if it does exist then open Internet explorer. What I now want to do is get the value of that registery key and put it in the URL. How can I do this?
@echo off
reg query HKLM\Software\Test\Monitor\Settings
if errorlevel 1 goto not_exist
goto exist
:not_exist
:ex...
I used the net user command on a friends computer and now I can't access it. Can anyone tell me what the password would be from this line?
net user Username *".password1
thank you
...
C:\crp\cnp>sed -V
GNU sed version 3.02
Copyright (C) 1998 Free Software Foundation, Inc.......
C:\crp\cnp>type f.f
a a a
a a a
Trying to replace 'a' with spaces.
C:\crp\cnp>type f.f | sed -e s/a/\d032/g
d032 d032 d032
d032 d032 d032
why isn't it working?
I don't mind whether i'm finding or replacing spaces or new lines.. I ...
Is it possible to create WPF window from a command prompt application?
for example I have a MainWindow WPF class with contains the main windows of my application. when I use the following code in my command prompt application I get this error: "The calling thread must be STA".
class Program
{
static void Main(string[] args)...
I am uploading google app engine application with the help of appcfg.py command from command prompt in windows.
But after one login I want to upload another application from the same command prompt but i cannot because this second application has no rights with the current login so i want to logout from this session on command prompt s...
Hi everyone.
I seem to have discovered a problem with subprocess.Popen() on a Windows XP x64 machine. If Popen() is called with Shell=True, instead of a subprocess being created, the error
The syntax of the command is incorrect
is printed to the command prompt.
The problem was discovered when trying to use Mercurial on the comman...
I am trying to make a relative shortcut using a batchfile and a program to turn the batch in an exe program with an icon.
I need a 'shortcut' to open the next alfabetic parallel folder in an explorer window and one to open the previous. Ideally I would even like it to to close the explorer window used to doubleclick it.
I have so far:
...
Before you say its a duplicate question, please let me explain (as I've read all similar threads).
My application has both of these settings:
procStartInfo.CreateNoWindow = true;
procStartInfo.WindowStyle = ProcessWindowStyle.Hidden;
and is also has WindowsApplication as the output type.
The black window STILL comes up when I ...
I have these 2 files a.vbs and a.bat each has only one line.
a.vbs
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
a.bat
copy c:\blah\y.y c:\
When it works, it runs a.bat quietly in the background, which does the file copy.
I can do start..run...a.vbs a.bat
That works.
I can open a command prompt...
Ok, read that again. I need to open a windows prompt WITH perl. This is because I want multiple prompts running perl scripts in parallel, but don't want to open them all by hand. So I want a script that I can call (host), tell the number of command prompts to open (clients), path to the client script to run, and even put in inputs if the...
I am building an user input interface in R.
onload of the program, I would like like to ask the user what their preferences are according to a set of 6 fields. This will then be used as a comparison tool for the rest of the program.
e.g.,
>ThisProgram
>"Hello, on a scale of 1 to 10, how much would you say you rate the outdoors in y...
I'm trying to fix an existing C-program with VS2005 that eventually calls
int system(command) //in C:\Program Files\Microsoft Visual Studio 8\VC\crt\src\system.c)
with parameter value
start C:\Program Files\VideoLAN\VLC\vlc.exe C:\Documents and Settings\me\My Documents\My Music\09 - Track09.mp3
the program to be started and the ...
Hi there I have a program that requires me to set the PATH environment variable to point to JRE version 1.5 as I need to access the program via a command prompt. So any ideas on how to do that?
...
Hi. I want to program in Perl a very basic program but I'm having some questions about how to do it. I'll keep it simple:
I want a perl script that when number 1 is pressed a new "cmd.exe" is opened and the "dir" command is executed, and when 2 is pressed a new "cmd.exe" is opened and the command "cd" is executed.
The place where I'm ha...
This is my current PS1 prompt definition from by .bashrc:
PS1='\[\033[01;33m\]★ \[\033[01;30m\]\w \[\033[32m\]\$ \[\033[m\]'
My command prompt works great and I love it, but I would like to add one more little thing. I would really like to be able to have the text I enter (commands at the prompt) bold.
I know I could change the last ...
Hi everyone, my question may be simple for you, but I have no experience about it. So, the problem is that I have a COM server and it is started from the context of another EXE, and I need to prevent this COM Server application to open a command prompt window, thanks in advance for your help.
...
I have written a java program named Automate.java, in which the another java program named newsmail will be executed.
The problem i face here is, Automate.java is in Desktop location(should be in desktop only always due to some requirements) and newsmail is in /home/Admin/GATE521/LN_RB this location.
What must be done before the below ...
Hey, I am trying to use PowerISO's command line program piso.
I am using C# to open a process and enter the command to mount a cd/dvd. This is working fine and the cd/dvd gets mounted every time.
The trouble is that .ReadToEnd() will not stop reading and the program hangs here. It seems as though the response from the command prompt...
Is it possible to have a bash script automatically complete prompts that would normally be presented to the user with default actions? Currently I am using a bash script to call an in-house tool that will display prompts to the user (prompting for Y/N) to complete actions, however the script I'm writing needs to be completely "hands-off...