Tuesday, May 19, 2009

Visual Studio Tweaking

Visual Studio every time says loading for first time...

To avoid this do

Click on the Tools > Options

Select "Import and Export Settings",

Edit the path for "Automatically save my settings to this file:" to a path on disk drive but not My Documents or any network drive.

Wednesday, May 13, 2009

IF Statment for MS-DOS batch file

SET FrontEnd="false"
SET BackEnd="false"
SET Translations="false"

IF %FrontEnd% == "true" GOTO FrontEnd
IF %BackEnd% == "true" GOTO BackEnd
IF %Translations% == "true" GOTO Translations
GOTO END

:FrontEnd
ECHO I am FrontEnd
GOTO END

:BackEnd
ECHO I am BackEnd
GOTO END

:Translations
ECHO I am Translations
GOTO END

:END

SET and GET values in DOS Batch file

Set a variable in DOS Batch file using following syntax

SET myVariable="Hello"

Get the value of the variable in DOS Batch file using following syntax

%myVariable%