Showing posts with label Batch File. Show all posts
Showing posts with label Batch File. Show all posts
15 February 2020
REM Copy semua dan paste ke notepad dan save sebagai Start.bat
@echo off
REM https://stackoverflow.com/questions/162291/how-to-check-if-a-process-is-running-via-a-batch-script
SETLOCAL EnableExtensions
set P1=iFAct.exe
set P2=OUTLOOK.EXE
:Program1
REM Check if iFAct is running
FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %P1%"') DO IF %%x == %P1% goto iFActFound
echo Starting iFAct
start /min "" "C:\Users\Public\ifact\3.0.0.5\iFAct.exe"
goto Program2
:iFActFound
echo iFAct already Running
:Program2
REM Check if Outlook is running
FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %P2%"') DO IF %%x == %P2% goto OUTLOOKFound
echo Starting Outlook
start /min "" "C:\Users\othmmohd\appdata\roaming\microsoft\internet explorer\quick launch\user pinned\taskbar\outlook 2016.lnk"
:OUTLOOKFound
echo Outlook already running
TIMEOUT 1
del "C:\Users\othmmohd\Documents\A_Emails_Attachments\*.png"
del "C:\Users\othmmohd\Documents\A_Emails_Attachments\*.msg"
del "C:\Users\othmmohd\Documents\A_Emails_Attachments\*.doc*"
del "C:\Users\othmmohd\Documents\A_Emails_Attachments\*.jpg*"
del "C:\Users\othmmohd\Documents\A_Emails_Attachments\*.ppt*"
del "C:\Users\othmmohd\Documents\A_Emails_Attachments\*.pdf"
del "C:\Users\othmmohd\Documents\A_Emails_Attachments\*.xls*"
timeout 2
08 November 2018
Hidden Folder
Salam dan selamat pagi.
Pagi ni aku update sikit code dari post aku sebelum ni di sini sebab ada ralat.
Update kali ni kita akan simpan file didalam System Volume Information.
Harap folder ni Windows tak delete la.
Use at your own risk.
@ECHO OFF
title Hide Folder
ECHO Created by Zaiem Othman. 8/11/2018.
if EXIST ".\System Volume Information" goto UNLOCK
if NOT EXIST ".\System Volume Information" goto MDLOCKER
:UNLOCK
echo Enter password to unlock folder
set/p "pass=> "
if %pass%== 1 goto REVEALFOLDER
if NOT %pass%== 1 goto FAIL
:FAIL
cls
ECHO Created by Zaiem Othman. 30/4/2015.
echo Invalid password
goto UNLOCK
:MDLOCKER
md "System Volume Information"
echo Private created successfully
attrib +h +s +a ".\System Volume Information"
start explorer ".\System Volume Information"
goto End
:REVEALFOLDER
attrib +h +s +a ".\System Volume Information"
start explorer ".\System Volume Information"
goto End
:End
02 August 2018
Restart Program Automatically Using Batch File
Assalamualaikum,
Ni aku kongsikan kod ringkas bagaimana nak mulakan semula aplikasi jika di-pangkah.
Save as Restart.Bat
@echo off
:Restart
start "Notepad" /wait "C:\Windows\notepad.exe"
goto Restart
Ni aku kongsikan kod ringkas bagaimana nak mulakan semula aplikasi jika di-pangkah.
Save as Restart.Bat
@echo off
:Restart
start "Notepad" /wait "C:\Windows\notepad.exe"
goto Restart
23 May 2018
RBTray
Minimum kan sebarang program ke Windows Tray.
http://rbtray.sourceforge.net/

RBTray
RBTray is a small Windows program that runs in the background and allows almost any window to be minimized to the system tray by right clicking its minimize button.
It is free, open source, and is distributed under the terms of the GNU General Public Licence.
Download:
RBTray 4.3
Older Versions
Changes:
4.3 (2011-Oct-30):
* Hide windows instead of minimizing and hiding.
* Hide windows even if they're already in the tray.
* Fix "Close Window" for Explorer windows.
4.2 (2011-Jun-24):
* Improve ability to minimize certain programs.
4.1 (2010-May-08):
* Unified mouse hook procedure improves reliability and fixes small minimize
target with XP theming.
* Fixed tooltip overflow for long window captions.
4.0 (2010-May-06):
* Alternative mouse hook procedure for Windows Vista/7 Aero compatibility.
* Fixed 64-bit compatibility and created 64-bit compiles.
* Removed window menu additions (e.g. Minimize in tray, Always on top),
hotkey, and keyboard indicator.
* Dropped Windows 9x support.
* Tray icon tooltip can display Unicode characters.
* Removes tray icon automatically if a program shows itself or exits.
* Fixed problem when minimizing Office 2007 windows.
* Won't minimize MDI child windows.
* Other small fixes and reorganized code.
Other:
For forum, bug tracker, etc. see RBTray SourceForge project page.
Copyright © 1998-2011 Nikolay Redko, J.D. Purcell
http://rbtray.sourceforge.net/
RBTray
RBTray is a small Windows program that runs in the background and allows almost any window to be minimized to the system tray by right clicking its minimize button.
It is free, open source, and is distributed under the terms of the GNU General Public Licence.
Download:
RBTray 4.3
Older Versions
Changes:
4.3 (2011-Oct-30):
* Hide windows instead of minimizing and hiding.
* Hide windows even if they're already in the tray.
* Fix "Close Window" for Explorer windows.
4.2 (2011-Jun-24):
* Improve ability to minimize certain programs.
4.1 (2010-May-08):
* Unified mouse hook procedure improves reliability and fixes small minimize
target with XP theming.
* Fixed tooltip overflow for long window captions.
4.0 (2010-May-06):
* Alternative mouse hook procedure for Windows Vista/7 Aero compatibility.
* Fixed 64-bit compatibility and created 64-bit compiles.
* Removed window menu additions (e.g. Minimize in tray, Always on top),
hotkey, and keyboard indicator.
* Dropped Windows 9x support.
* Tray icon tooltip can display Unicode characters.
* Removes tray icon automatically if a program shows itself or exits.
* Fixed problem when minimizing Office 2007 windows.
* Won't minimize MDI child windows.
* Other small fixes and reorganized code.
Other:
For forum, bug tracker, etc. see RBTray SourceForge project page.
Copyright © 1998-2011 Nikolay Redko, J.D. Purcell
09 February 2018
Create Batch File to Create Another Batch File and Launch Internet Address
Nah. panjang sungguh aih tahuk kali ni.
Kali ni nak share cara malas aku load password dari file ke clipboard dan seterusnya open Intranet.
lepastu aku hanya paste and tekan enter.
Tak perlu susah susah nak buka IE, klik bookmark, dan taip password.
Copy kod kat bawah dan paste kedalam Notepad, seterusnya save sebagai .BAT
==================================================
@echo off
set Output="%USERPROFILE%\desktop"
set /p PWD=Key Id Your SWTAT Password :
Echo Echo %PWD% ^| clip >SWTAT.bat
Echo Start "" http://swtat.klm.infineon.com/LogOn.aspx >>SWTAT.bat
==================================================
Katakan input ialah "123"
Maka, output seperti dibawah.
Echo 123 | clip
Start "" http://swtat.klm.infineon.com/LogOn.aspx
Ok. Selamat mencuba.
Kali ni nak share cara malas aku load password dari file ke clipboard dan seterusnya open Intranet.
lepastu aku hanya paste and tekan enter.
Tak perlu susah susah nak buka IE, klik bookmark, dan taip password.
Copy kod kat bawah dan paste kedalam Notepad, seterusnya save sebagai .BAT
==================================================
@echo off
set Output="%USERPROFILE%\desktop"
set /p PWD=Key Id Your SWTAT Password :
Echo Echo %PWD% ^| clip >SWTAT.bat
Echo Start "" http://swtat.klm.infineon.com/LogOn.aspx >>SWTAT.bat
==================================================
Katakan input ialah "123"
Maka, output seperti dibawah.
Echo 123 | clip
Start "" http://swtat.klm.infineon.com/LogOn.aspx
Ok. Selamat mencuba.
01 April 2017
17 December 2016
Zaiem_Hidden Folder v1.2
Salam,
Sedikit modifikasi/update berbanding versi terdahulu.
Versi 1.2 ini mengandungi opsyen mendedahkan hidden folder.
Sedikit modifikasi/update berbanding versi terdahulu.
Versi 1.2 ini mengandungi opsyen mendedahkan hidden folder.
@ECHO OFF
title Hide Folder v1.1
ECHO Created by Zaiem Othman. 30/4/2015.
if EXIST ".\Zaiem_Hidden" goto UNLOCK
if NOT EXIST ".\Zaiem_Hidden" goto MDLOCKER
:UNLOCK
echo Enter password to unlock folder
set/p "pass=> "
if %pass%== 1 goto REVEALFOLDER
if NOT %pass%== 0 goto FAIL
attrib +h +s ".\Zaiem_Hidden"
::ren "HTG Locker" Private
echo Folder Unlocked successfully
start explorer ".\Zaiem_Hidden"
goto END
:FAIL
cls
ECHO Created by Zaiem Othman. 30/4/2015.
echo Invalid password
goto UNLOCK
:MDLOCKER
md "Zaiem_Hidden"
echo Private created successfully
attrib +h +s ".\Zaiem_Hidden"
start explorer ".\Zaiem_Hidden"
goto End
:REVEALFOLDER
attrib -s -h -a /s /d %dir%
:End
25 February 2016
Quickly Mute or Un-mute volume using VBS
Hello reader,
I find clicking on Volume icon on taskbar and wait few seconds to appear and clicking again on mute button was so time consuming.
So i did some Googling and found this awesome codes.
1. Copy code below and paste in Notepad.
2. Save notepad as Mute.VBS to your desktop. I place mine near to Volume icon for easy access.
3. Simply double click VBS file to mute and un-mute.
Find from this original post.
http://www.dostips.com/forum/viewtopic.php?t=995
I find clicking on Volume icon on taskbar and wait few seconds to appear and clicking again on mute button was so time consuming.
So i did some Googling and found this awesome codes.
1. Copy code below and paste in Notepad.
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys(chr(173))
2. Save notepad as Mute.VBS to your desktop. I place mine near to Volume icon for easy access.
3. Simply double click VBS file to mute and un-mute.
Find from this original post.
http://www.dostips.com/forum/viewtopic.php?t=995
29 January 2016
Sembunyikan folder tanpa sebarang aplikasi di PC
Hello pembaca,
Ini adalah tutorial menyembunyikan folder tanpa sebarang aplikasi pihak ketiga. Hanya perlu ikut langkah dibawah.
Salin kod dibawah dan paste di dalam Notepad.
Seterusnya save notepad sebagai "Private Folder.bat" atau apa sahaja nama yang anda kehendaki.
Gantikan PASSWORD dengan password yang anda ingini.
Satu folder akan diciptakan dan disembunyikan di tempat yang sama dengan file Private Folder.bat
@ECHO OFF
title Hide Folder v1.1
ECHO Created by Zaiem Othman. 30/4/2015.
::cd %~dp0
if EXIST ".\Private Folder" goto UNLOCK
if NOT EXIST ".\Private Folder" goto MDLOCKER
:UNLOCK
echo Enter password to unlock folder
set/p "pass=> "
if NOT %pass%== PASSWORD goto FAIL
attrib +h +s ".\Private Folder"
::ren "HTG Locker" Private
echo Folder Unlocked successfully
start explorer ".\Private Folder"
goto END
:FAIL
cls
ECHO Created by Zaiem Othman. 30/4/2015.
echo Invalid password
goto UNLOCK
:MDLOCKER
md "Private Folder"
echo Private created successfully
attrib +h +s ".\Private Folder"
start explorer ".\Private Folder"
goto End
:End
Ini adalah tutorial menyembunyikan folder tanpa sebarang aplikasi pihak ketiga. Hanya perlu ikut langkah dibawah.
Salin kod dibawah dan paste di dalam Notepad.
Seterusnya save notepad sebagai "Private Folder.bat" atau apa sahaja nama yang anda kehendaki.
Gantikan PASSWORD dengan password yang anda ingini.
Satu folder akan diciptakan dan disembunyikan di tempat yang sama dengan file Private Folder.bat
@ECHO OFF
title Hide Folder v1.1
ECHO Created by Zaiem Othman. 30/4/2015.
::cd %~dp0
if EXIST ".\Private Folder" goto UNLOCK
if NOT EXIST ".\Private Folder" goto MDLOCKER
:UNLOCK
echo Enter password to unlock folder
set/p "pass=> "
if NOT %pass%== PASSWORD goto FAIL
attrib +h +s ".\Private Folder"
::ren "HTG Locker" Private
echo Folder Unlocked successfully
start explorer ".\Private Folder"
goto END
:FAIL
cls
ECHO Created by Zaiem Othman. 30/4/2015.
echo Invalid password
goto UNLOCK
:MDLOCKER
md "Private Folder"
echo Private created successfully
attrib +h +s ".\Private Folder"
start explorer ".\Private Folder"
goto End
:End
Labels:
Batch File,
Tips,
Tutorial
Location:
Kulim, Malaysia
Subscribe to:
Posts (Atom)

