Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hello i have a python program and my code needs a batch script but idk how to so is there any source that i can learn from

What I have tried:

i tried searching in youtube but its kinda old
Posted
Updated 8-Jan-24 20:50pm
v2
Comments
Richard MacCutchan 9-Jan-24 3:56am    
What sort of batch script are you referring to, and what do you want it to do? Most times you can do everything you need in the Python code.
l o o l 24-Jan-24 8:17am    
"Windows Batch is different from Linux shell scripts and has been replaced by Powershel"

No, Windows Batch was not replaced by PowerShel, the two coexist, although there are practices of forcing, pushing the migration to PowerShell, and a consequent statement pointing to "abandon" batch, batch (and the command interpreter "cmd. exe") is present in all current versions of Windows.

You can start with these three here, there is a wide range, this will give you a good start

Rob van der Woude's Scripting Pages[^]

DosTips - The DOS Batch Guide[^]

An A-Z Index of Windows CMD commands - SS64.com[^]
 
Share this answer
 
It really depends on what your system is - Windows Batch is different from Linux shell scripts, and has been superceded by Powershell in later OS versions.

Find out what is available on your system, and google for that specifically: "*** file commands" will get you loads of info if you replace "***" with ".BAT", "powershell", or ".SH" which will get you started.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900