Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Set Icon

by pryrt (Abbot)
on Dec 24, 2020 at 00:53 UTC ( [id://11125703]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Set Icon
in thread Set Icon

Perhaps start was needed just to allow a relative directory for the icon file.

Nope, even if I have the full path to the icon file, I still needed the start.

My guess was actually because I was running from an existing cmd.exe console, so maybe there are some things you're not allowed to change on that window.

If I run the similar command from the Win+R Run menu, without the start and with full path to the icon, it also works -- again, it's creating a fresh console window rather than relying on a pre-existing window.

If I put it into a batch file, which I run perl (without the start prefix) from either the cmd.exe window or from double-clicking via explorer, then it does change the icon for either. And when the batch file is done, the window continues to use the new icon. Interesting.

Anyway, hope this helps the OP.

Replies are listed 'Best First'.
Re^5: Set Icon
by Bod (Parson) on Dec 24, 2020 at 11:50 UTC

    My guess was actually because I was running from an existing cmd.exe console, so maybe there are some things you're not allowed to change on that window.

    An existing console window does have some limitations on what is permitted. So your guess is very plausible. I can't recall exactly what the limitations are but changing the icon could very well be one.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11125703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-25 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found