There have been several instances where I'm trying to access a file (like a .out or .dat to download to memory) and I get the dreaded
Could not open file
Is there a way to tell what directory the scripting console is in?
For example, I have a linked project to a clearcase view on d:, and my workspace is on C:. The .out file is in d. So I try to set the current directory and I get an error (see below)
js:> env.setCurrentDirectory("D:\vws\ejp_M2_evm6472_pwcw\spDsp\EVM\M2_EVM6472");
Could not set Current Directory, "D:\vws\ejp_M2_evm6472_pwcw\spDsp\EVM\M2_EVM6472_configuration\.config\xconfig_message_single\D:wsejp_M2_evm6472_pwcwspDspEVMM2_EVM6472" does not exist
Yet its there!! (at least according to the DOS window)
D:\vws\ejp_M2_evm6472_pwcw\spDsp\EVM\M2_EVM6472>dir
Volume in drive D has no label.
Volume Serial Number is 44D3-F14D
Directory of D:\vws\ejp_M2_evm6472_pwcw\spDsp\EVM\M2_EVM6472
08/26/2010 10:29 AM <DIR> .
08/26/2010 10:29 AM <DIR> ..
I rebooted CCS and tried again. The error suggests that somehow setCurrentDirectory is appending a default directory somehow.
js:> env.setCurrentDirectory("c:\Work")
Could not set Current Directory, "C:\Program Files\Texas Instruments\ccsv4\eclipse\D:wsejp_M2_evm6472_pwcwspDspEVMM2_EVM6472\c:Work" does not exist
Cheers