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
1222
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
1320
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
1263
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
1412
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
1373
posted 11 years ago by kidmizere
ffmpeg - Convert Sony Cybershot MPG file to mp4 for JavaFX 2
0
1409
posted 12 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
1450
posted 12 years ago by laurenceosx
This will loop through files in somefolder with the extension .c, print out the filename and compile the files.
0
1354
posted 12 years ago by stianlagstad
7zip commandline builder for zipping extensions in an svn repository
0
1151
posted 12 years ago by lookmatters
A DOS batch script to handle registering and controlling a JBoss service.
0
1168
posted 12 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
1411
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
1300
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
1786
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
1403
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
1133
posted 13 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
1092
posted 13 years ago by altern
'svn add' all unversioned files in a working copy to svn repository recursively on windows
0
1318
posted 13 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
1990
posted 13 years ago by m1b
Just run at the prompt cygwin bash $ cmd.exe /c start .
0
1520
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
1227
posted 14 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
1466
posted 14 years ago by cappellin