0

I have a cmd line to run an executable called 'Invertor':

Invertor  /g /d /i 

Program 'Invertor' starts but then fails when it can't later when it can't open a corresponding .bin file. The .bin file IS in the same directory as .exe so at least should be found. The Invertor program is fine when I open it by double clicking the icon, so the program is working.

Do I have a problem with the /g /d /i options? Am I missing one?

Thanks

J.H
  • 17
  • 5
  • did you try any other commands? like creating an instance of the program? – EgMusic Oct 12 '17 at 12:36
  • No, good idea, how would I do that? – J.H Oct 12 '17 at 12:55
  • No idea. But it is possible. Let me look it up reel quik. – EgMusic Oct 12 '17 at 13:10
  • https://stackoverflow.com/questions/6487766/how-to-start-2-programs-simultaniously-in-windows-command-prompt – EgMusic Oct 12 '17 at 13:11
  • When you run the program by double-clicking the executable, there won't be any command-line arguments. What do the `/g` `/d` and `/i` flags actually do? Why are you specifying them? – Harry Johnston Oct 12 '17 at 13:12
  • Also, when you run the program by double-clicking the executable, the current directory will be the directory the executable is in. That might not be true in a batch file if the program is on the PATH or if you specify the full path to the executable. – Harry Johnston Oct 12 '17 at 13:16
  • Harry- Specifying the full path worked (thanks) but the path was specified in computer environment anyway (thats why it would work initially). I don't fully understand why the path needs specifying again? My undertsanding of the flags was so that paths to various files would be considered... obviously I was wrong. – J.H Oct 12 '17 at 13:42
  • EgMusic- Im taking a look at that now :) – J.H Oct 12 '17 at 13:42
  • Uh ... actually, I thought that specifying the full path might be *causing* the problem, not that it might fix it. But whatever I guess. If in doubt about the flags, you need to look at the documentation for "Invertor", or ask for help from the developer - they're the only people who would know. You can check whether the executable can be found on the path by running `where invertor` in a command shell. – Harry Johnston Oct 12 '17 at 13:59
  • This isn't really even a code question. You are asking us how to use a specific piece of software. That is off topic for StackOverFlow. – Squashman Oct 12 '17 at 16:12
  • It is a code question because Im asking about flags which the batch command requires as well as how the paths works within the batch script opposed to setting it within the computers environment. – J.H Oct 13 '17 at 09:23

0 Answers0