Showing posts with label command line. Show all posts
Showing posts with label command line. Show all posts

Wednesday

How can I make yes/no questions is a batch file?


mplayer.exe -cache 1024 -speed 1.66 %1
SET /P ANSWER=Do you want to delete %1 file (Y/N)?
echo You chose: %ANSWER%
if /i {%ANSWER%}=={y} (goto :yes)
if /i {%ANSWER%}=={yes} (goto :yes)
goto :no
:yes
rm -f %1
exit /b 0
:no
echo file wasn't deleted
exit /b 1

more...

Tuesday

copy odbc from one computer to another


1.if this i user odbc run regedit.exe and export this folder into .reg file.
HKEY_CURRENT_USER\Software\ODBC
2.copy .reg file on target machine and double click on .reg file to add all keys to registry.

If they are System DSN odbc you have to do the same operations for
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC
registry folder.

more...

Thursday

tinyget call samples

Invoking the page for 4000 times.

tinyget -srv:localhost -uri:/BuggyBits/Links.aspx -loop:4000

Invoking the page on 30 threads, 50 times each.

tinyget -srv:localhost -uri:/BuggyBits/FeaturedProducts.aspx -threads:30 -loop:50

Saturday

listen podcast audio book faster (timesaving tip) with mplayer

First download mplayer player from http://www.mplayerhq.hu/design7/dload.html


mplayer.exe -cache 1024 -speed 1.77 %1\*.*


Other Mplayer command line samples

play shuffle-music from directory


mplayer.exe -cache 1024 -shuffle %1\*.*


Play shuffle winamp/text file list


mplayer.exe -cache 1024 -shuffle -playlist %1

more...

Stored User Names and Passwords

to retrieve a list of Stored User Names and Passwords do:
C:>rundll32.exe keymgr.dll, KRShowKeyMgr

Windows can store your logon information for network locations and Web sites. To add an entry, click Add. To edit an existing entry, select it, and then click Properties.


Friday

Convert WMA Into MP3 (free/no-installation)

      0. download and unpack these apps : MPlayer and lame
      1. Convert the WAV file by this command:
         mplayer -vo null -vc dummy -af resample=44100 -ao pcm "Song 1.wma"
2. convert into MP3 the result of step 1 (audiodump.wav).
lame audiodump.wav "Song 1.mp3"

3. delete large wav file created in step 1(audiodump.wav)

make ubuntu business casual

to make ubuntu business casual - make it black remove background: gsettings set org.gnome.desktop.background picture-options ...