#πŸ”’ Subprocess behaves differently from cmd

11 messages Β· Page 1 of 1 (latest)

sacred current
#

I'm trying to get this command working: bin\quickbms.exe -l bin\InstExpl.wcx ALF2CD-230.exe
the problem is, for whatever reason, it only works if it's run like this:
C:\WINDOWS\system32\cmd.exe /d /c ""D:\Programieren\UniPyX\bin\quickbms.exe" -l "D:\Programieren\UniPyX\bin\InstExpl.wcx" "D:\Programieren\python\UniPyX\ALF2CD-230.exe"
the problem is that I'm unable to replicate this in python, I am able to run it like this in powershell but with python cmd gives me all kinds of syntax errors or the program doesn't execute correctly

here are the files:
https://update.bioruebe.com/uniextract/nightly/bin/quickbms.exe
https://update.bioruebe.com/uniextract/nightly/bin/InstExpl.wcx
https://update.bioruebe.com/uniextract/nightly/bin/InstExpl.dll
https://www.rarewares.org/rrw/files/others/ALF2CD-230.exe

crisp pineBOT
#

@sacred current

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

craggy skiff
#

What happens if you run that it in cmd.exe?
I'm not downloading random binaries you've linked to, they could contain viruses or anything. Please only link to source code and text, not executables.

sacred current
craggy skiff
#

You're out of luck then.

sacred current
craggy skiff
sacred current
#

I got it working now, thanks! besides the incorrect escaping, the program I use has some dependencies that weren't listed anywhere that I didn't copy

#

!close

crisp pineBOT
#
Python help channel closed with !close

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.