Login
Forum Help



Post Your Message
Username: (Login)

Topic:
Message:
 


Previous Messages
Posted By

SVS
on 2017-12-14
14:20:18
 Re: Run Yape from a Batch file (.bat)

Ok, FYI I succeeded with the following batch:

CD PathToYape
START /abovenormal /affinity 0x03 YAPEWIN64.exe "PathToImage\Image.D64"

Posted By

JamesC
on 2017-12-13
20:54:42
 Re: Run Yape from a Batch file (.bat)

Gaia, maybe a new command-line parameter so we don't break anyone else's setup. /STARTDISK8:source.d64 /DISK9:destination.d64 might work well for SVS.

If you want to expand on the idea, a way to attach disks on Drive Settings (so that they could be saved to the .ini) would be handy. I can't say I ever played with the command-line parameters before this, I have always fiddled with the settings you offer. Or I just double-click the .d64 or .prg and let YAPE handle the rest. wink

Posted By

Gaia
on 2017-12-13
15:38:46
 Re: Run Yape from a Batch file (.bat)

Autostart is only intended when you leave out the /DISK# option and just specify the filename... I agree this is non-consistent at best... so what would be your suggestions? happy

Posted By

JamesC
on 2017-12-13
09:56:08
 Re: Run Yape from a Batch file (.bat)

KiCHY, the .d64 is attached. I can hit F3 and see the DIRECTORY, YAPE displays an "Attached to drive 8:" note at the bottom of the window.

The documentation may be a bit unclear:
• '/DISK#:image' for attaching an image to drive {8,9,10,11} at startup
• '/NOSTART' will suppress autostart

Having both command-line options IMPLIES that a .d64 will be autostarted, but it does not specifically SAY that it will. SVS may be trying to do something that Gaia never intended.

Posted By

KiCHY
on 2017-12-13
07:09:24
 Re: Run Yape from a Batch file (.bat)

Maybe yape simply doesn't receive the parameter. Does yape attach the disk anyway? Perhaps there is nothing to start (in case of nonattached disk).
Did you try this:
... "D:\DiscoE-Plus4\Emulator\Yape\YapeWin64.exe /DISK8:D:\DiscoE-Plus4\Progetti\Austro-decompiler\austrosimple\austrosimple.d64"
instead of:
... "D:\DiscoE-Plus4\Emulator\Yape\YapeWin64.exe" /DISK8:"D:\DiscoE-Plus4\Progetti\Austro-decompiler\austrosimple\austrosimple.d64"

Posted By

SVS
on 2017-12-13
06:14:12
 Re: Run Yape from a Batch file (.bat)

Thank you JamesC, for the info.
What I need is to make my batch file to autostarts the first file in the D64 image (like Yape does when launched directly from .exe).
In the Yape manual there is some parameters that can be supplied if you run it as command line. For example: /NOAUTOSTART disables the autostart the first file. Unfortunately there is no command to enable it.

Posted By

JamesC
on 2017-12-12
14:35:18
 Re: Run Yape from a Batch file (.bat)

** EDITED **

START /ABOVENORMAL /AFFINITY 0x03 -- /abovenormal and /affinity 0x03 have no effect at the command line, only from within a batch file. The 3 needs to be specified as 0x03, a hex value in Windows format.

"YAPE higher priority" -- this does not display anywhere that I can find. Not on the YAPE window, not within Task Manager.

[path to YAPEWin64.exe] [/DISK8 path] can be reduced to the path to the .d64, if your YAPE is associated with .d64 files. (Can you double-click a .d64 and YAPE open it?)

This WORKS for me, but the priority and affinity are lost (evidently we can't prioritize a data file, only an exe):
START D:\DiscoE-Plus4\Progetti\Austro-decompiler\austrosimple\austrosimple.d64

Posted By

SVS
on 2017-12-12
09:50:41
 Run Yape from a Batch file (.bat)

I want to run Yape with a higher priority than a normal Windows task. Then I've written a short Batch.bat file with the DOS command START that allows to set the process priority (and other features).

The line is:
START /abovenormal /affinity 3 "YAPE ad alta priorità" "D:\DiscoE-Plus4\Emulator\Yape\YapeWin64.exe" /DISK8:"D:\DiscoE-Plus4\Progetti\Austro-decompiler\austrosimple\austrosimple.d64"

It works fine, but Yape does not perform the autostart of the first file in the D64 image. I've tried several ways but without luck.
Any suggestion? Thanks.


Copyright © Plus/4 World Team, 2001-2024