How to check a Hard Disk’s health status
You can check the health of your hard disk by using a command in Windows (S.M.A.R.T.). Start a cmd window wmic diskdrive get status This should output the following result: status ok ok …
How to create a simple Backup script using windows HTA
Prerequisites: a notepad (I recommend: notepad++) some HTML knowledge Start a simple HTML page and add the following as the main structure:<head> <title>Backup Reminder</title> <HTA:APPLICATION APPLICATIONNAME=”Backup Reminder” ID=”myware” VERSION=”1.0″ CAPTION=”yes” BORDER=”normal” SYSTEMMENU=”yes” MAXIMIZEBUTTON=”no” MINIMIZEBUTTON=”no” ICON=”gumware.ico” SCROLL=”no” SCROLLFLAT=”yes” SINGLEINSTANCE=”yes” CONTEXTMENU=”yes”/><style> img{border: 0px} input{color: blue; background-color: white; font-variant:small-caps; font-family: Arial,Helvetica,sans-serif; border: 1px solid blue} H1,H2,H3,H4,H5,H6,P,BODY,UL{font-family: Arial, Helvetica, …
Create a Data Generator using sequence and a loop in Oracle DB
Create a sequence (i.e. “tmp” starting with 10001) to be used in statements: CREATE SEQUENCE TMP START WITH 10001 MAXVALUE 9999999999999999999999 MINVALUE 1 Enter the following in a DB-Tool editor: begin FOR Lcntr IN 1..10000 LOOP insert into customer (surname, forname, some_id, some_field) values (‘SN’ || tmp.nextval, ‘FN’ || tmp.nextval, 123456, ‘abcdef’); END LOOP; commit; …
How to create a bootable usb to install Windows X
Firstly, insert your USB (WARNING: the following steps will erase ALL DATA on selected USB!!). Open a cmd prompt and type “diskpart” to start the partitioning program: list disk # <– to list the disks on the system # Disk ### Status Size Free Dyn Gpt # ——– ————- ——- ——- — — # Disk …
How to fix VB application not running on Windows Vista, 7 or 8
Older VB application built on VB 5 or 6 may not work properly under the newer versions of Windows Vista, 7 or 8. The app may even require specific dll or other file to be registered on the system. You may need to register MSCOMCT2.OCX and/or COMCTL32.OCX For a 32bit system run as follows: Regsvr32 MSCOMCT2.OCX …
How to compile a single form from command-line Oracle Forms 11g
Create a batch file and enter the following: @echo off echo. echo. echo. :: set varables set FRMCMP=c:OracleMiddlewareas_1binfrmcmp.exe set FORMS_DIR=c:UsersAdministratorjavaprojectsDOMAIN_NAMEFormsReportsSystemForms set USER_PATH=c:UsersAdministrator set DEST=c:FORM_EXECUTABLES :: get input from console set /p choice= Type the form name (w/o extension): set FORM_NAME=%choice%.fmb echo. cd %FORMS_DIR%tmp echo. Compiling… :: command line execution frmcmp.exe module=%FORMS_DIR%tmp%FORM_NAME% …
How to capture input from a command prompt / batch
Write the following in a batch file and say the input was “andreas”: @echo off echo == Capture Input === set server=192.168.1.12 SET /P Choice=Type your Username and press Enter: echo Logging on to %server% with %choice%… Output: Logging on to 192.168.1.12 with andreas… …
How to automate a commit/update with Tortoise SVN using a batch file
Your SVN project should already be checked out. Enter the following in a batch file (.bat): @echo off echo. echo. :: The two lines below should be changed to suit your system. set SOURCE=C:projectsmy_svn_project set SVN=C:Program FilesTortoiseSVNbin echo. echo. Committing %SOURCE% to SVN… “%SVN%TortoiseProc.exe” /command:commit /path:”%SOURCE%” /closeonend:0 echo. done. echo. echo. …
How to login with Windows Telnet automatically using vbs
Enter the following script and save it as a .vbs file: Set obj = CreateObject(“WScript.Shell”) obj.run”cmd” WScript.Sleep 500 obj.SendKeys”telnet your.ip.add.ress” obj.SendKeys(“{Enter}”) WScript.Sleep 500 obj.SendKeys”username” ‘telnet username obj.SendKeys(“{Enter}”) WScript.Sleep 500 obj.SendKeys”password” ‘telnet password obj.SendKeys(“{Enter}”) WScript.Sleep 500 …
Useful Linux/Dos Commands
Navigation: cd /usr/local/i-net crystal-clear #use (backslash) to replace space in path ls #list dirs/files of current path, normal column-view dir #dos dir /q /a:r|h|s #to list dirs and files with attributes and owners dir /-n #to list dirs and files with their short 8.3 names dir /x #to list dirs and files with short …
No post found