Starting Console with special Environment and Directory,...

  • Thread starter Thread starter Kerem Gümrükcü
  • Start date Start date
K

Kerem Gümrükcü

Hi,

i would like to start a Windows CMD with a special Environment, e.g.
i would like to set my own PATH values and other Env. Data. I also
want to start at a given directory, e.g "C:\Program Files\WizArc\bin\".

It should wok on Windows 2000/XP/Vista and Upper. How do i
do this? Can i do this with a .bat file? And if yes,...how? The Batch
file would be the one i would prefer,...

TIA

Regards

Kerem


--
 
Kerem Gümrükcü said:
Hi,

i would like to start a Windows CMD with a special Environment, e.g.
i would like to set my own PATH values and other Env. Data. I also
want to start at a given directory, e.g "C:\Program Files\WizArc\bin\".

It should wok on Windows 2000/XP/Vista and Upper. How do i
do this? Can i do this with a .bat file? And if yes,...how? The Batch
file would be the one i would prefer,...

TIA

Regards

Kerem

Have a look at the various boxes in the CMD shortcut you
create. One of them lets you specify the starting directory.

Another box is labelled "Target". In it you specify the file
you wish to execute. In your case you could launch the
command processor which in turn executes a batch file
to set your preferred path, e.g. like so:

cmd /k c:\Tools\Kerem.bat

Kerem.bat
=======
@echo off
set path=%path%;c:\MyFiles
mode con lines=50
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top