As a result of "Dave_b"'s post on making additions to the global "path" variable, I am making a "substitute" command.
Quote of Dave_b's post:
There are variables that are pre-defined before your command session starts. PATH is one of them. You can change the values of these pre-defined variables as long as you have admin privileges.
There are multiple methods to get to the window that allows modification of the values, and the details can vary depending on your version of Windows. On Vista you can get to it from the Control Panel: Select System, then select Advanced system settings, then select Environment Variables. From this point on I think the various Windows versions are the same.
There are two sections: User variables only apply to you, and System variables apply to all users of the machine. If you modify the PATH in System variables then anybody that logs in to that machine will have access to your "command". Alternatively I think you can create a PATH variable in your User section, copying the existing value from System section and then modify it as you want. I believe the PATH definition in your User section will over-ride the System value, but I'm not 100% sure.
I want to place a REM statement before a user-defined piece of code (they state the file path as well).
Is there a way to place code in another text document/batch file remotely?
Any help would be appreciated,
Rileyh