Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error on bat file
#1
so today i tried to create a bat file, and the code is like this:
#! python3
@py.exe C:\Users\MSI\AppData\Local\Programs\Python\Python37-32\Automate the Boring Stuff with Python Course\searchmap.py %*
and the system popped out a SyntaxError box saying invalid syntax, highlighting the C in C:\ part. i tried to get rid of first line or change the @py.exe to just @py but nothing is working.
Reply


Messages In This Thread
error on bat file - by Sanlus - Aug-27-2018, 11:09 AM
RE: error on bat file - by Larz60+ - Aug-27-2018, 11:21 AM
RE: error on bat file - by Sanlus - Aug-27-2018, 11:37 AM
RE: error on bat file - by Larz60+ - Aug-27-2018, 11:45 AM
RE: error on bat file - by Sanlus - Aug-27-2018, 12:09 PM
RE: error on bat file - by Larz60+ - Aug-27-2018, 12:13 PM
RE: error on bat file - by Sanlus - Aug-27-2018, 12:46 PM
RE: error on bat file - by snippsat - Aug-27-2018, 02:47 PM
RE: error on bat file - by Sanlus - Aug-28-2018, 05:42 AM
RE: error on bat file - by snippsat - Aug-28-2018, 02:10 PM

Forum Jump:

User Panel Messages

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