how do I launch a python script within the IDLE python shell from the command line?

basically I want to use Notepad++ as my editor, but when I press F5 I want my script to run in the IDLE python shell (NOT in a cmd window).

If I do
C:\Python26\Lib\idlelib\idle.pyw whatever.py

then that opens up the IDLE editor as well as the shell, and I still have to press F5 in the editor

If I do
C:\Python26\python.exe whatever.py

then that runs my script but in a cmd window

Thanks

Here it is.

idle.py -c whatever.py
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.