PDA

View Full Version : load xml file


junkone
03-10-2009, 11:36 AM
when i try to load a xmlfile, it seems to be looking at
Could not find file 'E:\Program Files\NinjaTrader 6.5\bin\settings.xml'.

how can i force it to look at the strategies folder or in \NinjaTrader 6.5\bin\Custom folder

xmlDoc.Load(Application.StartupPath+ "\\" + "settings.xml");

NinjaTrader_RJ
03-10-2009, 11:54 AM
when i try to load a xmlfile, it seems to be looking at
Could not find file 'E:\Program Files\NinjaTrader 6.5\bin\settings.xml'.

how can i force it to look at the strategies folder or in \NinjaTrader 6.5\bin\Custom folder

xmlDoc.Load(Application.StartupPath+ "\\" + "settings.xml");


Hello,

Thank you for your post.

It seems as though you installed NinjaTrader on a different drive. Try installing on the default C:\Drive.
Download link: http://www.ninjatrader.com/webnew/download_trading_software.htm

junkone
03-10-2009, 12:21 PM
what difference would that make. it would then look for the file under
c:\Program Files\NinjaTrader 6.5\bin\settings.xml'.

i like to leave it as is as my e: is my data drive. what application setting or config can i use for my strategy to look for the file under strategies folder or in \NinjaTrader 6.5\bin\Custom folder

NinjaTrader_Josh
03-10-2009, 12:34 PM
junkone,

You can try absolute file pathing with @"C:\Documents and Settings\User\NinjaTrader 6.5\...."