Difference between ~ and . in exec() script command?
by Jeff Leigh · in Torque Game Engine · 10/17/2002 (3:32 am) · 2 replies
What is the difference in meaning between the ~ character and the . character in the exec() script command when executed?
Examples:
exec("./prefs.cs");
exec("~\prefs.cs");
I've tried to follow some of the scripting heirarchy and everytime I think I have it figured out I run into a new one that doesn't fit the pattern.
./ seems to go down from the current directory that the calling script is in just like in the DOS cd command, but the ~ has me stifled.
Any help?
Examples:
exec("./prefs.cs");
exec("~\prefs.cs");
I've tried to follow some of the scripting heirarchy and everytime I think I have it figured out I run into a new one that doesn't fit the pattern.
./ seems to go down from the current directory that the calling script is in just like in the DOS cd command, but the ~ has me stifled.
Any help?
#2
10/17/2002 (6:44 pm)
Thanks David. Don't know how I missed that. I monitor every message that comes across.
Torque Owner David Dougher
Pariah Games
http://www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=7285
Your answers should be there.