Hi I'm writing a program in vb.net. The program can be started from another program by passing some arguments or it can be lauched by clicking .exe. I'd like to show the user some options depending on where he is coming. Is the below approach correct?
Private Sub Main_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me....
I am doing a command line app that needs to read some files and do some processing.
There can be many file arguments on the command line, and each of these can be in one of the following formats:
Relative path, with or without wildcards.
Complete path, with or without wildcards.
Network shares should be supported.
What is the easi...
Hello there,
I have a LaTeX file, 'myfile.tex' say, that sometime in the middle of the code an ASCII file with LaTeX macros
has to be input, 'macrofile.tex, say, through an '\input{macrofile}' command. Actually, there are more than one 'macrofiles', so every time I have to edit 'myfile' and change the name of 'macrofile'. I can avoid th...
I'm trying to pass arguments in XCode and understand you need to add them from the Args tab, using the Get Info button, in the Executables of the Groups and Files pane. I'm trying to see if I can get it to work, but am having some difficulty. My program is simply:
#include <iostream>
#include <ostream>
using namespace std;
int main(i...
Heya,
I've written few Fireworks commands (jsfw files) and Flash commands that I use for my image processing.
Is it possible to run them from command line without launching the whole UI app for Fireworks or Flash?
...
HI,
in unix there are number of files in my directory.
i want to change all the files to zero byte files.
is that possible on a single command line?
for example:
-rw-r--r-- 1 sumanma dev 434 Jan 8 14:36 pprbc_NL.cpp
-rw-r--r-- 1 sumanma dev 488 Jan 8 14:37 pprbc_TreeBuild.cpp
-rw-r--r-- 1 sumanma dev ...
In my website I want to virus-check any uploaded files before saving them into my database. So I save the file to the local directory then kick-off a command-line scanner process from inside my C# program. Here is the code I use:
string pathToScannerProgram = Path.Combine(virusCheckFolder, "scan.exe");
ProcessStartInfo startInfo = n...
It happens everywhere with desktop programs and scripts: a GUI application wraps some command-line program to provide a visual experience to its functionality. Is there a common term that describes this kind of GUI application?
I'm looking for a technical one or two-word term, not just "command-line wrapper application," etc.
...
I'm using python -c to execute a one-liner loop, i.e.:
$ python -c "for r in range(10): print 'rob'"
this works fine. However, if I import a module before the for loop, I get a syntax error:
$ python -c "import sys; for r in range(10): print 'rob'"
File "<string>", line 1
import sys; for r in range(10): print 'rob'
...
For example, you have a rename command in a batch file, and you want to execute that file on the current directory and all sub-directories.
...
I have created a batch file to run an application automatically but it seems my CMD does not run it. I typed this (using notepad as an example):
CMD /C "C:\notepad2\notepad2.exe"
If I run this from Windows Vista it worked. But running this from Windows Server 2008 (64-bit) it just doesn't work. I even try using that line from the Run ...
Hi all,
I need to be able to change the working directory in MATLAB without interacting with the command window. I'm launching MATLAB from a Java application. Right now the only solution I've come up with is closing MATLAB, changing directory from JAVA and relaunching. Is there some streamlined way to send MATLAB the 'cd' command from J...
How do I assign a sequence of character strings to a char ** argv variable in a program? Its a command line argument. I'm currently trying to convert an .exe app to a dll.
For example:
{ "string1", "string2", "string3" } --- > char ** argv variable
My problem is somehow realted to this:
http://stackoverflow.com/questions/1015944/ho...
I know that the color bf command sets the colors of the whole command line window but I wanted to to print one single line in a different color.
Thanks
...
Is there a way to eject all the mounted hard drive volumes on an OS X computer from the command line? Applescript is OK if I can wrap that in a shell script.
...
How would I suppress all warnings (or at least as many as possible since those prefixed with MSB cannot be suppressed How to suppress specific MSBuild warning)?
...
Hi all:
I have a situation where I have a few cygwin commands which I wish to be run in Windows command line e.g.
chmod 777 /home/administrator/*
Currently I have to manually type in cygwin.bat, then enter the above command in cygwin. I was wondering whether it is possible (and if so, how) to have these steps automated in Windows co...
Apologies but I am new to the whole UNIX/Mac command line.
I have MacVim installed and I am trying to set it up as the editor for Git (version control). But I can't run 'mvim' from the command line as it isn't recognised. I don't see an option in MacVim to do this for me. I am guessing I need to edit a PATH variable on the Mac?
...
I want to open a PDF document at a specific page from the command line, sort of like vim +n [file]. Is there any way to do that in OSX, with any PDF reader program?
...
I have some PowerShell scripts that accept many long parameters, like,
myScript.ps1 -completePathToFile "C:\...\...\...\file.txt" -completePathForOutput "C:\...\...\...\output.log" -recipients ("[email protected]") -etc.
I can't seem to make PowerShell run such scripts unless all the parameters are on a single line. Is there a way to invoke ...