get a variable externally

I would like to save log file using user-defined filename when the game starts.

I can use the following VBScript code to get the filename, and start the game, but I have no idea how to pass the variable(usrName) to Unity, and how can Unity read the variable?

Or is there any other way to get the variable for Unity?

Dim usrName
usrName = Inputbox(“Enter fileName”,“Enter file”)
Set WShell = CreateObject(“WScript.Shell”)
WShell.Run “C:\unity est_unity.exe”

You mean like command line params? http://unity3d.com/support/documentation/Manual/Command%20Line%20Arguments.html

I’m not sure it’s possible like that. I use the registry to poke values into the PlayerPrefs then in Unity scripts, read them from PlayerPrefs