Changing these variables depents on how the system is configured.
In some cases, setting
set path=somedrive\somepath in the autoexec.bat
may work, but then again, it may not. Again this depends on how the system is configured (user rights). For informaiton on the autoexec.bat, look on google or in an old DOS manual.
To use the Windows method, right click on
My Computer and choose
Properties (if you have the icon on the desktop) or open the
Control Panel (change to classic view) and start
System. Change to the panel labled
Advanced, then click the button labled
Environment Variables, edit the
Path in the
System Variables section to what you want/need it to be, click
OK,
OK,
OK, to get back out. Any programs started (but not spawned) *after* you made this change will get the new information. So to ensure the new variable information is available system wide, restart the system.
Your Administrator may restrict your access, so none of this may actually work.
And finally, this may not actually work for the sendmail for Windows discussed here. As Windows may not pass the right informaiton to the program, resulting in the program not finding its files (such as the ini file). Additionally, it may or may not work, depending on how the
sendmail is actually called within the actuall script (a
system call means Windows handles it, thus the %PATH% variable is present, a spawn call may not be as 'fortunate').