Eric Kay
asked on
Setting DOS Environment Variables
How do I set a DOS environment variable under Delphi 2.0.
I am currently using:-
SetEnvironmentVariable('DF PATH', NewVarDirectory);
When I do I get an error Stating: "Incompatible Types 'String' and 'PCHAR'"
The variable NewVarDirectory simply holds the new directory name.
When I use
SetEnvironmentVariable('DF PATH', 'F:\PRG\PROGRAMS');
there is no error generated.
Regards
Eric Kay
I am currently using:-
SetEnvironmentVariable('DF
When I do I get an error Stating: "Incompatible Types 'String' and 'PCHAR'"
The variable NewVarDirectory simply holds the new directory name.
When I use
SetEnvironmentVariable('DF
there is no error generated.
Regards
Eric Kay
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Forgot to let go of the shift key.