Game Development Community

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?

#1
10/17/2002 (6:27 am)
You are not alone in your question. This was posted just a few days ago.

http://www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=7285

Your answers should be there.
#2
10/17/2002 (6:44 pm)
Thanks David. Don't know how I missed that. I monitor every message that comes across.