Python Forum
HTML to Python to Windows .bat and back to HTML
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML to Python to Windows .bat and back to HTML
#1
I have already created a program to run windows .bat file using Python and my requirements are

(1) Let user enter data in Tinymce editor embedded in HTML page. The HTML code is as given below
<!DOCTYPE html>
<html>
<head>
<h3 align="center" style="color:red;" ><u>My Tool<u></h3>
</head>
<body style="background-color:#4863A0;">
<script src="C:\Python\web_building\tinymce\plugins\tinymce\tinymce.min.js"></script>
<textarea id="mytextarea1" rows="10" cols="1800" >Write commands here </textarea>
</script>
<button class="button button2" onclick="myFunction()">Convert Commands</button>
<script>
function myFunction() 
{
var myvar2 = mytextarea1.value
//below is just an example, I need to develop logic to get get tinymce content and send back that as // a variable to my Python file 
document.getElementById("demo").innerHTML = myvar2;
}
</script>
</body>
</html>		
(2) On HTML button click , submit data entered into Tinymce editor embedded on HTML page - to the windows .bat file on web server and execute that windows .bat file

(3) Get output of the windows .bat file executed in previous step and display back in HTML page ( preferably in text area of Tinymce )

Sorry if you feel this is a basic question as I have recently taken up this task without much experience in programming field
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Seeking feedback: dynamic_i18n — automatic dynamic translation of HTML via OpenAI Bona2000 7 5,090 Sep-15-2025, 03:28 PM
Last Post: Bona2000
Question [SOLVED] [Beautiful Soup] Move line to top in HTML head? Winfried 0 966 Apr-13-2025, 05:50 AM
Last Post: Winfried
  Python - Hidden Text / Html Mail python1337 1 4,492 Feb-08-2025, 10:47 AM
Last Post: python1337
  Converting ipynb to html PLEASE HELP Bartlo_fi 0 881 Jan-15-2025, 12:37 PM
Last Post: Bartlo_fi
  Convert Json to table formathttps://python-forum.io/thread-38313.html python_student 3 18,704 Dec-05-2024, 04:32 PM
Last Post: Larz60+
  WebElements of an HTML page Nik1811 2 2,134 Mar-14-2024, 12:39 PM
Last Post: Nik1811
  Going through HTML table with selenium emont 3 4,200 Sep-30-2023, 02:13 AM
Last Post: emont
  Need to replace a string with a file (HTML file) tester_V 1 3,016 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  why doesn't it replace all html tags? Melcu54 3 2,696 Jul-05-2023, 04:47 AM
Last Post: Melcu54
  pyscript index error while calling input from html form pyscript_dude 2 2,713 May-21-2023, 08:17 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020