Welcome To Snipplr
Everyone's Recent DOS Batch Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
**Vars** to to specify
+ ${EnvSet_Bash}
**Demo**
vars specified like
+ ${EnvSet_Bash}=[set-mysqlRT-Env](http://www.snipplr.com/view/80407/an-example-bash-file-for-set-temporary-path/ "set-mysqlRT-Env.bat")
pluss other bash commond
*...
0
1061
posted 10 years ago by jacktan
Run `mysqladmin` to shutdown msyql server with a specified option file.
**Vars** to to specify
+ ${EnvSet_Bash}
**Demo**
vars specified like
+ ${EnvSet_Bash}=[set-mysqlRT-Env](http://www.snipplr.com/view/80407/an-example-bash-file-for-...
0
1124
posted 10 years ago by jacktan
Run a Mysql server using command line with a specified option file.
**Vars** to to specify
+ ${EnvSet_Bash}
**Demo**
vars specified like
+ ${EnvSet_Bash}=[set-mysqlRT-Env](http://www.snipplr.com/view/80407/an-example-bash-file-for-set-...
0
1090
posted 10 years ago by jacktan
set-mysqlRT-Env.bat
before you run other commands like mysql, call this bat for temporary PATH and other environment variables。
**Vars** to specify
+ ${STH_HOME}
+ ${homeValue}
**Demo**
Vars specified like
+ ${STH_HOME}=MYSQL_HOM...
0
1202
posted 10 years ago by jacktan
Nice script for formatting dates in a batch file without having the system locale settings impact your format
0
1189
posted 10 years ago by kidmizere
ffmpeg - Convert Sony Cybershot MPG file to mp4 for JavaFX 2
0
1218
posted 11 years ago by laurenceosx
This type of conversion is very fast because the main audio video content is just copied (not converted) to a new container type of file.
1
1285
posted 11 years ago by laurenceosx
This will loop through files in somefolder with the extension .c, print out the filename and compile the files.
0
1169
posted 11 years ago by stianlagstad
7zip commandline builder for zipping extensions in an svn repository
0
974
posted 11 years ago by lookmatters
A DOS batch script to handle registering and controlling a JBoss service.
0
971
posted 11 years ago by djangofan
This is a batch file that will add the date to the end of all files in a particular directory located on the user's desktop and place them in a directory called Output_Renamed on the user's desktop.
2
1203
posted 12 years ago by _reydin_
This is a fraction of a much larger script which does multiple tasks. This scriptlet is intended to be interactive and somewhat user-friendly. First, it asks if you want to place the computer into sleep mode, then it kills pesky processes associated...
1
1122
posted 12 years ago by Rectifier
Uses the sysinternals (microsoft) utility PsLogList to save specified event logs to files and then clears them. Method can be used to save logs as .evt and .evtx. This script has four event logs listed as an example and has a template command comment...
0
1541
posted 12 years ago by Rectifier
This is a simple batch script to clear the event logs from a windows 7 or server 2008 machine. The script does *not* save these logs. This was tested on a local machine but could be adapted for remote use.
1
1231
posted 12 years ago by Rectifier
Batch script creates repository dump of specific project in repository. It assumes that repository has following structure:
/project1
/trunk
/tags
/branches
/project2
/trunk
/tags
/b...
0
971
posted 12 years ago by altern
Batch script creates initial svn repository structure according to SCM framework (http://scm.altern.kiev.ua):
/project
/trunk
/tags
/builds
/PA
/A
/B...
0
943
posted 12 years ago by altern
'svn add' all unversioned files in a working copy to svn repository recursively on windows
0
1116
posted 12 years ago by altern
Useful to open an image for viewing from the command line under Windows, in this example the image is generated by the GraphViz dot command.
0
1746
posted 13 years ago by m1b
Just run at the prompt cygwin bash $ cmd.exe /c start .
0
1329
posted 13 years ago by peterlubczynski
This command will tell you the date of Installation of your Windows System.
The result will look like this:
*InstallDate = 11:48:12 28.06.2010*
0
1059
posted 13 years ago by bits
The code works if and only if your system is using English(United States) date format (i.e. "Web 05/11/2011").
If your systems is using English(United Kingdom) date format just replace %%B in the first and third rows with %%A.
0
1265
posted 13 years ago by cappellin