Chat with Me -- HOST - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2) +--- Thread: Chat with Me -- HOST (/showthread.php?tid=1262) |
RE: Chat with Me -- HOST - Pete - 12-11-2022 Aha! Language barrier. Nasa-Cow will probably get back to me with something like, "Pete, not even close!" Thanks for the post back with tmp.tmp file readout @Kernelpanic +2 I took a nap, saw your post, and once again edited the code. It will work for you now. Thanks especially for "dashing" out the code, for 2 VERY important reasons... 1) It keeps your personal info private. 2) I am printing and framing Steve's reply, where he thought the dashes might be from Virtual Machine. Hell, if we get software that messes with command prompt output, we're all screwed. Pete RE: Chat with Me -- HOST - Kernelpanic - 12-11-2022 Pete, now it finds the address, but 'SHELL _HIDE "ipconfig>tmp.tmp" must not be commented out. PS: It just doesn't work with Notepad++, not even with the specification of the complete path. Notepad is not in the system path. Let's see. Code: (Select All) Case Else RE: Chat with Me -- HOST - Pete - 12-12-2022 Yes, you must have tried it before I came back and edited it. I commented it out while testing your results. Pete RE: Chat with Me -- HOST - mnrvovrfc - 12-12-2022 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. Like: Code: (Select All) Case Else Otherwise why not install NPPP somewhere inside the home user directory? That's what I did, I don't install into M$'s protected garden if at all possible. It could be installed "anywhere". RE: Chat with Me -- HOST - Kernelpanic - 12-13-2022 Quote:Using files and directories with spaces in the name, with "SHELL" is a PITA. 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 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. RE: Chat with Me -- HOST - mnrvovrfc - 12-13-2022 dot-H file (missingsystem.h): Code: (Select All) #define _DEFAULT_SOURCE top: Code: (Select All) declare library "missingsystem" bottom: Code: (Select All) sub new_shell(comd as string) call: Code: (Select All) '$INCLUDE: 'missingsystem.bi' I noticed you changed the path of NPPP program. There should have been no need for "start" and "SHELL" should have been sufficient. Otherwise Windows is unpredictable... what is known is that while "SHELL" is processed it always chokes on the "C:\Program" then space right after. One of the things that made people stop putting binary files into "Program Files" if they didn't get them from installers. There is widespread "installerphobia" in the forum that I used to belong to, which main focus was music software. RE: Chat with Me -- HOST - SMcNeill - 12-13-2022 Try: $CONSOLE:ONLY Shell "D:\Program Files\Notepad++\notepad++.exe tmp.three" SLEEP You should be able to get an idea of the issue from the output on the console. Sometimes a .\ helps with pathing, such as .\tmp.three RE: Chat with Me -- HOST - Pete - 12-13-2022 Code: (Select All) IF _FILEEXISTS("D:\Program Files\Notepad++\notepad++.exe") THEN RE: Chat with Me -- HOST - mnrvovrfc - 12-13-2022 (12-13-2022, 12:57 AM)Pete Wrote:You might be able to do that in Linux, but using single-quote. Otherwise the double-quotes should surround the program's entire path. Start before "D" drive and end with "dot-exe". RE: Chat with Me -- HOST - Kernelpanic - 12-13-2022 (12-13-2022, 12:57 AM)Pete Wrote: Thank's for the Tipps! It even works with "Program Files" now, thanks Pete. The IP number is displayed and Notepad opens with the specified file. There are two peculiarities: 1. The command line is also opened; is probably due to "Shell". 2. Without "_DontWait" the output window can/will not be closed until Notepad is closed. It shows, however, that it is also possible with Basic, even with "Program Files". Upgradable! I will try if I can pack the call to external programs in a function. |