Setting environment vars and change dirs - Please help
Posted: 07 Aug 2010 11:04
Hi there
i'm new to batch scripting and currently writing a file which performs some action
I have the following questions, can u please guide me on them
1. I need to set the following path on another server( say for ex: server B and C) from my local machine (say for ex: server A)
I have managed to understand and get right the following command i.e.
set PATH=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727;%PATH%
2. By default when u run this batch file from your local machine, i don't what is the current directory so i need to navigate to the following directory i.e.
cd "c:\Program Files\Folder1\Software1"
please guide me
regards
i'm new to batch scripting and currently writing a file which performs some action
I have the following questions, can u please guide me on them
1. I need to set the following path on another server( say for ex: server B and C) from my local machine (say for ex: server A)
I have managed to understand and get right the following command i.e.
set PATH=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727;%PATH%
2. By default when u run this batch file from your local machine, i don't what is the current directory so i need to navigate to the following directory i.e.
cd "c:\Program Files\Folder1\Software1"
please guide me
regards