me,myself,english and programming..

Archive for October, 2010

DOS – Check if drive already exist and map network drive

Monday, October 18th, 2010
IF EXIST Z: (
echo The drive is already mapped.
GOTO SKIPPED
) ELSE (
net use Z: \\10.100.100.1\MyData$ /user:MyUser "My Password"
)

:SKIPPED
REM ** YOUR CODE GOES HERE

or.

IF EXIST Z: (
net use Z: /delete
)
net use Z: \\10.100.100.1\MyData$ /user:MyUser "My Password"

Till Then….

10.10.10

Sunday, October 10th, 2010

it’s nice date right ? I got nothing to blog about, just for the sake of this beautiful date, i just post it.

i got so many things in my mind…but i can’t express it here for quite number of reason.

till then…adios.