wonder Expert Licensed User Longtime User Nov 4, 2015 #1 Hi! Is there a quick way to get the B4A path, for example: "C:\Program Files (x86)\Anywhere Software\B4A". Perhaps a code snippet? Thanks in advance!!
Hi! Is there a quick way to get the B4A path, for example: "C:\Program Files (x86)\Anywhere Software\B4A". Perhaps a code snippet? Thanks in advance!!
R Roycefer Well-Known Member Licensed User Longtime User Nov 4, 2015 #2 Code: Copy cd C:\ dir /s /b B4A.exe Beware, it's slow as HELL because it searches the whole C:\ drive. Upvote 0
Code: Copy cd C:\ dir /s /b B4A.exe Beware, it's slow as HELL because it searches the whole C:\ drive.
wonder Expert Licensed User Longtime User Nov 4, 2015 #3 Thank you! Maybe if we know where to search in the Registry... @Erel? Upvote 0
R Roycefer Well-Known Member Licensed User Longtime User Nov 4, 2015 #4 You can narrow down the search if you suspect it will be in the Program Files (x86) or the Program Files folders. Those searches will be a lot quicker. You can also test all the drive letters to see if they contain a Program Files (x86) or Program Files folder. There's a bit you can do to streamline this. Upvote 0
You can narrow down the search if you suspect it will be in the Program Files (x86) or the Program Files folders. Those searches will be a lot quicker. You can also test all the drive letters to see if they contain a Program Files (x86) or Program Files folder. There's a bit you can do to streamline this.
wonder Expert Licensed User Longtime User Nov 4, 2015 #5 I found that the following key [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\B4A Source Code\Shell\Open\Command] contains the B4A location. I hope it's common to all B4A installations... Upvote 0
I found that the following key [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\B4A Source Code\Shell\Open\Command] contains the B4A location. I hope it's common to all B4A installations...
S sorex Expert Licensed User Longtime User Nov 4, 2015 #6 the fastest would be this Code: Copy reg query "HKCR\B4A Source Code\DefaultIcon" and parse the result Code: Copy HKEY_CLASSES_ROOT\B4A Source Code\DefaultIcon (standaard) REG_SZ C:\Program Files\Anywhere Software\Basic4android\B4A.exe,0 Upvote 0
the fastest would be this Code: Copy reg query "HKCR\B4A Source Code\DefaultIcon" and parse the result Code: Copy HKEY_CLASSES_ROOT\B4A Source Code\DefaultIcon (standaard) REG_SZ C:\Program Files\Anywhere Software\Basic4android\B4A.exe,0
S sorex Expert Licensed User Longtime User Nov 4, 2015 #7 I don't know if B4J supports regRead if not you can call the above which doesn't require an additional file or use an addition batch/vbscript file. Upvote 0
I don't know if B4J supports regRead if not you can call the above which doesn't require an additional file or use an addition batch/vbscript file.