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').

In reply to Re^3: sendmail on windows- unique location by Delusional
in thread sendmail on windows- unique location by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.