tagged [command]

What is a simple command line program or script to backup SQL server databases?

What is a simple command line program or script to backup SQL server databases? I've been too lax with performing DB backups on our internal servers. Is there a simple command line program that I can ...

Groovyscript grails system commands

Groovyscript grails system commands Is there a possibility of running my "grails run-app" command from my groovy script? I tried "cmd /c dir".execute() and it was working but "cmd /c grails run-app" d...

Execute Unit Tests using MsBuild command line

Execute Unit Tests using MsBuild command line I use scripting for this: And I build solution .sln Now, I would like execute all Unit Tests and check all is OK. How can I execute unit tests of .csproj ...

BAT file: Open new cmd window and execute a command in there

BAT file: Open new cmd window and execute a command in there I'm trying to open a new command window in a BAT file: After it opens, I'd like to execute a BAT command in the new window: How can I do th...

3 Jun at 20:23

How can I shuffle the lines of a text file on the Unix command line or in a shell script?

How can I shuffle the lines of a text file on the Unix command line or in a shell script? I want to shuffle the lines of a text file randomly and create a new file. The file may have several thousands...

19 Jul at 04:34

Why does Process.Start("cmd.exe", process); not work?

Why does Process.Start("cmd.exe", process); not work? This works: But this doesn't: (It just opens a command prompt.) Why? (Yes, I know they're not identical. But the sec

24 Dec at 10:30

Change mysql user password using command line

Change mysql user password using command line I'm trying to update the password for a database user using the command line, and it's not working for me. This is the code I'm using: Could someone tell ...

1 Apr at 00:36

how concatenate two variables in batch script?

how concatenate two variables in batch script? I want to do something like this in batch script. Please let me know if this is the proper or possible way to do it or any other way? This should produce...

21 Oct at 07:58

Bash write to file without echo?

Bash write to file without echo? As an exercise, does a method exist to redirect a string to a file without echo? Currently I am using I know about `cat` and `printf`. I was thinking something like ``...

1 Jul at 04:24

c# execute shell command and get result

c# execute shell command and get result I am executing a command prompt command as follows: How to I get the output of the

5 Nov at 12:25

How can I get the current date and time in the terminal and set a custom command in the terminal for it?

How can I get the current date and time in the terminal and set a custom command in the terminal for it? I have to check the time in a Linux terminal. What is the command for getting date and time in ...

29 Dec at 00:3

'touch' is not recognized as an internal or external command, operable program or batch file

'touch' is not recognized as an internal or external command, operable program or batch file I work with laravel 5 , when i type in windows cmd this command "touch storage\database.sqlite" this error ...

21 Mar at 09:8

If my C# times out with a stored procedure call, does the procedure continue running?

If my C# times out with a stored procedure call, does the procedure continue running? I have just a general type of question. If I have a C# application that calls a SQL Server stored procedure, and t...

CMD command to check connected USB devices

CMD command to check connected USB devices I would like to obtain by a command prompt a list of all USB devices connected to my computer (O.S. Windows 10). I've googled to find such a command, but all...

17 Feb at 16:21

How can I reverse the order of lines in a file?

How can I reverse the order of lines in a file? I'd like to reverse the order of lines in a text file (or stdin), preserving the contents of each line. So, i.e., starting with: I'd like to end up with...

4 Dec at 05:7

how to empty recyclebin through command prompt?

how to empty recyclebin through command prompt? Usually we delete the recycle bin contents by right-clicking it with the mouse and selecting "Empty Recycle Bin". But I have a requirement where I need ...

cocoapods - 'pod install' takes forever

cocoapods - 'pod install' takes forever I was trying to update the existing pods with the `pod install` command, but it takes forever to run. The verbose mode shows it was stuck at the following line ...

22 Oct at 02:52

How to call VS Code Editor from terminal / command line

How to call VS Code Editor from terminal / command line The question says it all. How can I open VS Code editor from - - e.g. for notepad++ I write `> start notepad++ test.txt` By the way, the editor ...

How do I get the application exit code from a Windows command line?

How do I get the application exit code from a Windows command line? I am running a program and want to see what its return code is (since it returns different codes based on different errors). I know ...

How to execute a command in a remote computer?

How to execute a command in a remote computer? I have a shared folder in a server and I need to remotely execute a command on some files. How do I do that? What services need to be running on the serv...

9 Jan at 16:19

Why use argparse rather than optparse?

Why use argparse rather than optparse? I noticed that the Python 2.7 documentation includes yet another command-line parsing module. In addition to `getopt` and `optparse` we now have `argparse`. Why ...

Error "'git' is not recognized as an internal or external command"

Error "'git' is not recognized as an internal or external command" I have an installation of Git for Windows, but when I try to use the `git` command in Command Prompt, I get the following error: How ...

Restore a postgres backup file using the command line?

Restore a postgres backup file using the command line? Locally, I use pgadmin3. On the remote server, however, I have no such luxury. I've already created the backup of the database and copied it over...

How to check if a process is running via a batch script

How to check if a process is running via a batch script How can I check if an application is running from a batch (well cmd) file? I need to not launch another instance if a program is already running...

2 Oct at 14:45

What is the alternative for ~ (user's home directory) on Windows command prompt?

What is the alternative for ~ (user's home directory) on Windows command prompt? I'm trying to use the command prompt to move some files, I am used to the linux terminal where I use `~` to specify the...

13 Nov at 03:9