Re: Suppress windows cmd for system command in Perl
by BrowserUk (Patriarch) on Jun 18, 2015 at 11:57 UTC
|
Try: system( 1, qq[start /b your command and args here] );
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
| [reply] [d/l] |
|
|
Ah, the days of fiddling with start. Why the F*** does Micr$oft name things with overloaded words? I think it's a plan to avoid any possible bad words in every language in the world. Windows. Surface. Access. Excel (well, at least they changed the spelling). Outlook. Office. Explorer. Natural. Publisher. Vista. Visual <anything>. Xbox.
-QM
--
Quantum Mechanics: The dreams stuff is made of
| [reply] [d/l] |
|
|
Why the F*** does Micr$oft name things with overloaded words?
As opposed to *nix' nice, clear, self explanatory ones: ar crontab chgrp dd ex fc fuser grep iconv ipcrm ipcs ln nm nohup od stty uucp uux yacc :)
Aaaar cron, lay the table and change the rope. Deedee's ex f*** for using er. Grope I, won't convert me. I pee in the cream & pee in the cakes. Bleeeeeeeeeeeeeech.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
| [reply] [d/l] |
|
|
Thanks BrowserUk. I tried using that but still I see the cmd window popup.
| [reply] |
|
|
Hm. I cannot reproduce the problem on my machine. Neither the original problem or when using start.
Are you running the perl script you are using from a command line; or double clicking it in the explorer?
| [reply] |
|
|
|
|
|
|
|
Re: Suppress windows cmd for system command in Perl
by Discipulus (Canon) on Jun 18, 2015 at 09:53 UTC
|
| [reply] [d/l] |
Re: Suppress windows cmd for system command in Perl
by Anonymous Monk on Jun 18, 2015 at 09:28 UTC
|
| [reply] |
|
|
I tried using that but it did not help. Still I am getting the pop-up when system command is called. Also in my application I have some restriction to include new module like Win32. So I am looking for some other ways to remove the pop-up. If it doesn't help and including Win32 is the only way and I have the working model for it then I can take on this further.
| [reply] |
|
|
I tried using that but it did not help.... No wonder Chaks, you left out critical details twice, took until this to reveal you're calling perl from c++
So here is what you do, in c++ program, use SetChildShowWindow(0), so that when the c++ program starts programs there is no popup
| [reply] |