I ve written a program that saves a file and opens the folder of this file.
Sub btnsave_Action
File.WriteString(File.DirApp, "1.txt", "test")
End Sub
Sub btnopen_Action
fx.ShowExternalDocument(File.GetUri(File.DirApp, ""))
End Sub
After this I ve made exe with the help of B4JPackager.
When I set exe on a home pc, it sets to C:\Program Files\test3\app. The file 1.txt is kept on the same way. btnopen_Action leads to the same folder.
When I set this program on my work pc, it sets to C:\Program Files\test3\app. But File.WriteString(File.DirApp, "1.txt", "test") saves the file C:\Users\[user name]\AppData\Roaming\[AppName]
Why does it happend? What is the difference? How can I save file to C:\Program Files\test3\app or btnopen_Action open C:\Users\[user name]\AppData\Roaming\[AppName]