I am shelling out to tar.exe to compress some data.
I have a Folder called Resources relative to my Xojo project file, but within the project I do not have a folder called Resources.
In order to get the shell path to the resource I am using
Dim tarPath As FolderItem = GetFolderItem("Resources")
tarPath = tarPath.Child("tar.exe")
Resources resolves, but the child returns nil.
Am I suppose to put a post build ‘copy’ in my project to copy the all the ‘Resources’ to the build folder?
Should I create a folder in the IDE / Project called Resources and copy ‘stuff’ there?
Dim tarPath As FolderItem = GetFolderItem("this_does_not_exist")
Dim exePath As FolderItem = tarPath.Child("tar.exe")
MessageBox tarPath.NativePath
MessageBox exePath.NativePath
this_does_not_exist doesn’t exist, and tar.exe is not inside that. I don’t get nil with the code above.
Dim ResourcePath As FolderItem = GetFolderItem("MyAppName Resources")
Dim TarPath as FolderItem
if ResourcePath <> nil then
tarPath = ResourcePath.Child("tar.exe")
if TarPath = nil then
MsgBox("Wha?") /// This is where I am.
end if
else
MsgBox("Wha?")
end if
Dim ResourcePath As FolderItem = GetFolderItem(“Resources”) // Nope docs wrong.
Dim ResourcePath As FolderItem = GetFolderItem(“DebugMyAppName Resources”) // If debug
Dim ResourcePath As FolderItem = GetFolderItem(“MyAppName Resources”) // if not debug
I need help about resources and automations. I am a developer and learning this to help my client’s chatbots. Please can some one do a zoom meeting with me?