12-13-2022, 12:08 AM
(This post was last modified: 12-13-2022, 12:17 AM by Kernelpanic.)
Quote:Using files and directories with spaces in the name, with "SHELL" is a PITA.
Try changing from "Program Files" to "PROGRA~1" inside that path.
I have now tried everything under Basic, everything I could think of, but it doesn't work. - Under C, on the other hand, I got it to work.
This is how it works with the call of two programs under C. Maybe someone knows how to transfer this to Basic?
Code: (Select All)
//Aufruf externe Programme - 13. Dez. 2022
//Wie funktioniert dies in QuickBasic?
#include <stdio.h>
#include <stdlib.h>
#include <process.h>
int main(void)
{
printf("\nAufruf eines externen Programms.\n\n");
//Doppelte Schrägstriche! "Start" nur hier, sonst wird
//QB64 erst nach Schließung von Notepad gestartet.
system("start D:\\Programme\\notepad++.exe D:\\Lab\\QuickBasic64\\Forum\\Aufruf-IT-Adressen\\tmp.three");
printf("\n\nStart von QB64\n");
system("D:\\Programme\\QB64Phoenix3\\QB64pe.exe");
return(0);
}
PS: Oh yes, with "program files" and so on it did not work either under Basic or under C. I copied the Notepad++.exe file to Programme as a test.