Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Aswin Krishnan H

Pages: [1]
1
General Board / Re: Relative path in package control options
« on: January 24, 2015, 02:30:39 am »
Quote
You should ask on StackOverflow: How can I decode %appdata% using JScript. Maybe if you type that into Google it will give you an answer.

q.

lmgtfy: http://stackoverflow.com/questions/3624482/how-can-i-get-the-value-of-appdata-using-jscript

Thanks !  I got the same, just after posting the question.

I did
Code: [Select]
echo %appdata%
Cheers !

2
General Board / Re: Relative path in package control options
« on: January 22, 2015, 03:21:17 pm »
Quote
Write a parser for CSV or use some lib version.

q.

Thanks !  but how to access the path of the file ? (I have the paths.txt in C:\Users\harikria\AppData\Roaming\Sparx Systems\EA)
I dont want to hard code the location as it will keep on changing for different users.

How do i get to read the paths.txt from EA, without hard coding the location  :-/

I find that using " echo %appdata%  " you can get the App Data Folder, so if I append " Sparx Systems\EA " to the location, I hope the paths.txt will be created in the same folder all the time.

3
General Board / Re: Relative path in package control options
« on: January 22, 2015, 02:30:31 am »
Quote
No, it is in the application data of your local user profile.

Thanks ! I got the file

it reads "%PATH%;type=Version Control;id=svc_arch;path=C:\SVC\EA-Local-One;"

But how do i get the value of %svc_arch% in JScript.

4
General Board / Re: Relative path in package control options
« on: January 22, 2015, 02:14:39 am »
is it the one in "C:\Program Files (x86)\Sparx Systems\EA\paths.txt", that was empty...  :-/

5
General Board / Re: Relative path in package control options
« on: January 22, 2015, 01:25:35 am »
How do I consume the "controlled package path" in Scripting ?

6
Code: [Select]
https://cdnjs.cloudflare.com/ajax/libs/json2/20140204/json2.js

https://cdnjs.cloudflare.com/ajax/libs/json2/20140204/json2.min.js

http://www.json.org/js.html

https://github.com/douglascrockford/JSON-js

7
I dont think that is included in EA, you can however use them by adding JSON2.js in your local folder and then referring it in your code.

8
Quote
I think it doesn't change while the process runs. I was getting different behaviors between opening an EAP file from the windows explorer, which launches EA, and trying to launch EA and then use File -> Open to open the same file. In the first case the working folder was the one the file is located in, but not in the second case

the same here !  :o anything can be done to get a consistent working folder behavior ?

Pages: [1]