A
A
antinatalismmm2021-03-16 16:42:46
cmd/bat
antinatalismmm, 2021-03-16 16:42:46

What is the problem in running the simplest scripts?

I write a batch file to save time, as I study python and open several programs at once in any session.
Here is the code:

call "C:\Users\Nananan\Desktop\IDLE (Python 3.8 32-bit).lnk"
call "C:\Users\Nananan\Desktop\ A_Byte_of_Python_2.01.pdf"
call "C:\Users\Nananan\Desktop\PyCharm Community Edition 2020.1.2.ink"


Then I save it as bat and open the file via cmd as C.../Desktop/filename.bat
The standard IDLE opens, but the two remaining paths (the book in pdf and PyCharm) give me that '' is not an internal or external command , executable command or batch file'' - for PyCharm and simply ignore the pdf file without throwing an error in output.

Question:

What could be the problem?

a) Incorrect syntax (using call is wrong. But I tried other operators and there is no result)
b) Problem with the path in the case of the book and PyCharm

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2021-03-16
@antinatalismmm

Use start instead of call

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question