command-line

Web app for running ant task

Does anyone know of a simple web app that supports running ant tasks? Alternatively it could run command line programs. I need to allow the user to choose parameters for running the ant task. I effectively want a web interface to run the ant task and provide any parameters. I can write one but this is generic enough that it seems lik...

Command-line tool for finding out who is locking a file

I would like to know who is locking a file (win32). I know about WhoLockMe, but I would like a command-line tool which does more or less the same thing. I also looked at this question, but it seems only applicable for files opened remotely. ...

Windows 'dir' command, Order By Name AND <something>

Greetings, From the screenie below we can see a directory ordered by Name in Windows Explorer: *Edit: Didnt work -> * Link If I try the same thing in MS-DOS it orders by name differently - correctly: dir *.jpg /ON /B cubierta.jpg pag00.jpg pag06.jpg pag08.jpg pag09.jpg pag100.jpg pag101.jpg pag102.jpg pag103.jpg pag104.jpg pag105....

Can VS.Net Unit Test be run outside the IDE?

Howdy, Is there a way you can run your UnitTest project against a compiled DLL outside of the IDE? Basically we have testing procedures to validate code before moving into production. I would not want to run the tests inside the IDE. I would want to have the compiled code ready to move to production and be able to run a final test aga...

How can I recursively copy files of a specific pattern into a single flat folder on Windows?

I need to copy a set of DLL and PDB files from a set of folders recursively into another folder. I don't want to recreate the folder hierarchy in the target folder. I want to use built in Windows tools, e.g. DOS commands. Thanks in advance. ...

Can Biztalk run a console application?

Howdy, I am writing a C# console application that takes a binary file, rips it apart, analyzes it, and stores the data into a database. We want to use BizTalk to orchestrate watching when a new binary file is placed in a directory and calling my application with the file name/names to be parsed. Can BizTalk run a command line pr...

Do you know a similar program for wc (unix word count command) on Windows ?

A quick search gives me tawbaware wc, but it does not accept stdout as input stream, meaning I can not use pipe within a DOS session. Note: I can not install cygwin or use powershell (which would have allowed a '|foreach-object {(get-content $_).count}') unxutils and and gnuwin32 Packages might have this feature... ...

Search and replace with a batch file

I am writing a batch file script using Windows command and want to change each occurrence of some blank space with "," What is the simplest way to do that? ...

Starting Outlook and having an email pre-populated from command line.

Is this possible? I want to have the To:, Body, and an Attachment all pre-populated so all the user has to do is click send. Thanks! ...

Is there a simple way to do bulk file text substitution in place?

First of all, I'm a Perl newbie, so please be gentle =) I've been trying to code a Perl script to substitute some text on all source files of my project. I'm in need of something like: perl -p -i.bak -e "s/thisgoesout/thisgoesin/gi" *.{cs,aspx,ascx} But that parses all the files of a directory recursively. I just started a script: ...

How to get GDI objects associated to a process

I am investigating GDI leaks issue in one of our smart-client application. I am looking for a tool (like tasklist) to get the GDI objects associated to a process. I can see the GDI objects in taskmanager, But my requirement to capture it periodically somewhere. For example in a text file. ...

Rename a file with a batch script

How do you rename a file to include the datetime using the windows command line? ...

How to use scalax.io.CommandLineParser?

I want to create a class that takes string array as a constructor argument and has command line option values as members vals. Something like below, but I don't understand how the Bistate works. import scalax.data._ import scalax.io.CommandLineParser class TestCLI(arguments: Array[String]) extends CommandLineParser { private val op...

Outlook Express - sending e-mail from the command line

What is the best way to send e-mail using outlook express from the command line? It has to be an automated operation with no user interaction. There will be some .jpg files in attachment. Thanks. ...

PHP Warning: Module 'ldap' & 'mysql' already loaded when running PHP at command line

I am getting the following errors: PHP Warning: Module 'ldap' already loaded in Unknown on line 0 PHP Warning: Module 'mysql' already loaded in Unknown on line 0 when running the following command at the command line: php -c /etc/php.ini /path/to/script.php /etc/php.ini is the same php.ini that shown in phpinfo(). Any ideas? ...

How to iterate over arguments in bash script

I have a complex command that I'd like to make a shell/bash script of. I can write it in terms of $1 easily: foo $1 args -o $1.ext I want to be able to pass multiple input names into the script - what's the right way to do this? Of course I want to handle filenames with spaces in them. ...

How to get a command line process to use less processing power

I am wondering how to get a process run at the command line to use less processing power. The problem I'm having is the the process is basically taking over the CPU and taking MySQL and the rest of the server with it. Everything is becoming very slow. I have used nice before but haven't had much luck with it. If it is the answer, how wo...

Linux equivalent of the Mac OS X "open" command

I've found the "open" command in Mac OS X very handy in the command line. From "man open": The open command opens a file (or a directory or URL), just as if you had double-clicked the file's icon. If no application name is specified, the default application as determined via LaunchServices is used to open the specified files. That is,...

Where can I download a ascmd.exe?

Hello, I need to execute MDX query from command line (MS AS 2005). I have heard, that there is a program named ascmd, which can do this. Unfortunately, when I went to codeplex page I found that page supposed to deliver an ascmd doesn't work. Please help if you know any other page, where I can download ascmd or any other program execut...

What do you do if the file in TFS is locked by someone else?

Someone left the organisation but before leaving, he locked all the files for an unknown reason. How do you unlock them all so that the other developers can work? ...