%NinjaTraderInstallDir%
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Does NinjaTrader installs Environment Variables for locations?
Collapse
X
-
Does NinjaTrader installs Environment Variables for locations?
It would be good, that ninjatrader installer also created Environment Variables (like there is %windir% or etc), so, we could find out what is NinjaTrader installation and custom folder directories, like:
%NinjaTraderInstallDir%
Tags: None
-
Hello TazoTodua,
Try:
NinjaTrader.Core.Globals.UserDataDir - for the Documents\NinjaTrader 8 folder.
NinjaTrader.Core.Globals.InstallDir - for the C:\Program Files (x86)\NinjaTrader 8 folder.
However, I don't recommend storing or opening files from the program files directory.
If you want to supply resources save these in the Documents\NinjaTrader 8\templates folder.Chelsea B.NinjaTrader Customer Service
Comment
-
NinjaTrader_ChelseaB No, my goal it in VIsual Studio, to have a reference to NT DLL (which is located in ProgramFiles dir), I am building a custom solution. However, I wanted to get that path using Windows Registrry values or any stored variable in Windows, but I couldnt find any of them. Is there any way, without need to find out that without the help of `NT.COre.Globals.UserDataDir..` ?
Comment
-
Chelsea, probably i;ve explained it hardly. To ask you simple, if i install NT in `D:/myFolder` instead of `c:/program files`, then how to find out where is NinjaTrader installed? How your installer detects if there is already installed a NT on PC (if it is not installed in 'C:/program files' ) ?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
31 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
||
Started by tkaboris, Today, 05:13 PM
|
0 responses
2 views
0 likes
|
Last Post
by tkaboris
Today, 05:13 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,281 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
||
Started by WHICKED, Today, 12:45 PM
|
2 responses
19 views
0 likes
|
Last Post
by WHICKED
Today, 03:36 PM
|
||
Started by Tim-c, Today, 02:10 PM
|
1 response
10 views
0 likes
|
Last Post Today, 02:52 PM |
Comment