Programming and Scripting Archive

  • Subtraction in Excel?

    Subtraction in Excel?

    Tweet How to subtract in Excel? You will need to enter the following formula into the function area. e.g. Type in ‘=A1 – B1′

    Full Story

  • Script to list free disk space on a computer?

    Script to list free disk space on a computer?

    Tweet Script to list free disk space on a computer? If you are running a Microsoft OS, then you can use this script from the Microsoft site to list the FreeSpace. CODE: Const HARD_DISK = 3 strComputer = “.” Set objWMIService = GetObject(“winmgmts:” _ &...

    Full Story

  • How to auto submit a form?

    How to auto submit a form?

    Tweet How to auto submit a form? To auto submit a form, you can place the submit funtion in the onLoad parameter in the <body> tag. e.g.   <body onload=”$(‘formname’).submit()”> Tweet

    Full Story

  • How to prompt for variable in a batch file?

    How to prompt for variable in a batch file?

    Tweet For those that wanted to prompt users for information on their batch script, here is how you can do this. @echo off echo “Enter your name” set /p Name= echo “Enter your password” set /p Password= echo %Name% %Password% Tweet

    Full Story

  • How to remove period from a string?

    How to remove period from a string?

    Tweet How to remove period from a string? for example: www.domainname.com It needs to be ‘wwwdomainnamecom’ Solution: $Newdomainname = ereg_replace(‘.’, ”, $domainname); or $Newdomainname = str_replace(‘.’, ”, $domainname); Tweet

    Full Story

  • How to display 10 records per page?

    How to display 10 records per page?

    Tweet How to display 10 records per page? Code SELECT * FROM `your_table` LIMIT 0, 10 Tweet

    Full Story