skywalk wrote:
The problem is jumping back and forth and feeding the name of your files.
If the filename is the same, just switch between extension .pb and .pbi:
Code:
IDE.s = GetEnvironmentVariable("PB_TOOL_IDE")
FILE.s = ProgramParameter(0)
If FILE And IDE
If LCase(GetExtensionPart(FILE)) = "pbi"
FILE = Left(FILE, Len(FILE)-1)
ElseIf LCase(GetExtensionPart(FILE)) = "pb"
FILE + "i"
EndIf
;MessageRequester("INFO",FILE)
If FileSize(FILE) >= 0
RunProgram(IDE, #DQUOTE$+FILE+#DQUOTE$, #DQUOTE$+GetPathPart(FILE)+#DQUOTE$)
EndIf
EndIf
Requires argument "%FILE" (with double quotes) in the tool settings.