Sign in to follow this  

How to run Notepad++ script in CMD

This topic is 1512 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone i just saw a new tutorial and it required me to download Notepad++ and Powershell but i only download the notepad++ and i want to test the script i made in notepad++ not in powershell but in cmd.Thank you

Share this post


Link to post
Share on other sites

Without knowing what you are trying to achieve, we are all at a loss to help you.   There are things that PowerShell can do that the regular CMD shell cannot, so it's quite possible you can't achieve whatever it is you are trying to do with CMD alone.

 

If you were to at least link to the tutorial you are referring to perhaps somebody can help you.  

 

And what does this have to do with Python?

Share this post


Link to post
Share on other sites

Without knowing what you are trying to achieve, we are all at a loss to help you.   There are things that PowerShell can do that the regular CMD shell cannot, so it's quite possible you can't achieve whatever it is you are trying to do with CMD alone.

 

If you were to at least link to the tutorial you are referring to perhaps somebody can help you.  

 

And what does this have to do with Python?

Yes this is the link http://learnpythonthehardway.org/book/ in the first tutorial they teach us to make library in powershell and second tutorial they teach us to make a "print" in notepad++ using python language.In the second tutorial we can see the python print script is tested in powershell so i don't want to use powershell but i want to use cmd.Thank you and sorry if my post is confusing you ^^a i hope this will make it clear

Share this post


Link to post
Share on other sites

If you have Python installed in your Windows OS, do next:

1) execute cmd.exe;

2) python ex2.py

and you have some result as with other shell environment.

 

If Python not installed, but simple unpacked, for example to c:\python27, do next:

1) execute cmd.exe;

2) c:\python27\python.exe ex2.py;

or

1) execute cmd.exe;

2) set path=%path%;c:\python27

3) python ex2.py

Share this post


Link to post
Share on other sites

Powershell comes bundled with many Windows version. Try executing



powershell
in a command prompt window.

 

 

 

If you have Python installed in your Windows OS, do next:

1) execute cmd.exe;

2) python ex2.py

and you have some result as with other shell environment.

 

If Python not installed, but simple unpacked, for example to c:\python27, do next:

1) execute cmd.exe;

2) c:\python27\python.exe ex2.py;

or

1) execute cmd.exe;

2) set path=%path%;c:\python27

3) python ex2.py

Thank you that really helpfulsmile.png

Edited by Kurai Tsubasa

Share this post


Link to post
Share on other sites
Sign in to follow this