Skip Menu |

This queue is for tickets about the Win32-Process CPAN distribution.

Report information
The Basics
Id: 78208
Status: resolved
Priority: 0/
Queue: Win32-Process

Owner: Nobody in particular
Requestors: stefanos [...]

Bug Information
Severity: Normal
Broken in: 0.14
Fixed in: (no value)

Subject: how use with CREATE_NO_WINDOW and without in one script?
Download (untitled) / with headers
text/plain 215b
how use with CREATE_NO_WINDOW and without in one script? Workaround with win32::gui with Win32::GUI::Hide and Win32::GUI::Show works but is not really good solution. Better solution possible? example as attachment
text/x-perl 474b
#!/usr/bin/perl use Win32::Process qw(NORMAL_PRIORITY_CLASS CREATE_NO_WINDOW); Win32::Process::Create($ProcessObj, "C:\\Windows\\System32\\echo.exe", "", 0, NORMAL_PRIORITY_CLASS, "."); delete $INC{'Win32/'};#not work? use Win32::Process qw(NORMAL_PRIORITY_CLASS CREATE_NEW_CONSOLE);# not without CREATE_NO_WINDOW ? Win32::Process::Create($ProcessObj, "C:\\Windows\\System32\\echo.exe", "", 0, NORMAL_PRIORITY_CLASS, "."); exit;
Download (untitled) / with headers
text/plain 667b
You've misunderstood how CREATE_NO_WINDOW & CREATE_NEW_CONSOLE work. They're just constants that should be included as part of the $cflags (using the | operator). Simply including them as part of the import list doesn't do anything except create the constant. use Win32::Process qw(NORMAL_PRIORITY_CLASS CREATE_NO_WINDOW CREATE_NEW_CONSOLE); Win32::Process::Create($ProcessObj, "C:\\Windows\\System32\\echo.exe", "", 0, NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW, "."); Win32::Process::Create($ProcessObj, "C:\\Windows\\System32\\echo.exe", "", 0, NORMAL_PRIORITY_CLASS|CREATE_NEW_CONSOLE, ".");
oh yes, my fault, sorry. Thanks for the help.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to