29.04.2015 г.

Windows attribe hiden folder

Folder is Z:

attrib -H -S Z:\* /S /D


  • -    #Clear attribute
  • H   #Hidden file attribute
  • S   #Show system file attribute
  • /S  #Matching file in the curent and subdirectory
  • /D #Process folder as well

27.04.2015 г.

Find music and play it with shell find use


  • find /home/borko/Mp3 -name "*pls" -type f -print | while read file;do cvlc $file;done 

  • find /home/borko/Mp3 -name "*pls" -type f -print | sed 's/^/cvlc /' | sh -x


16.04.2015 г.

Use mstsc with menu options with bat file

Create file.bat and put text:



@echo off
SET /P myVariable="Choice options: 1 - First 2 - Second 3 - Third"

echo
if %myVariable%==1 goto :First 
if %myVariable%==2 goto :Second 
if %myVariable%==3 goto :Third 



:First 
echo "Set First "
cmdkey /generic:ip /user:username /pass:passwords & mstsc.exe /v:ip
exit

:Second 
echo "Set Second "
cmdkey /generic:ip /user:username /pass:pass:passwords & mstsc.exe /v:ip

:Third 
echo "Set Third "
cmdkey /generic:ip /user:username /pass:pass:passwords & mstsc.exe /v:ip