rudi Posted February 8, 2008 Posted February 8, 2008 Searching the autoit3 help and the forum here I couldn't find anything upon editing / creating PIF files. Did I simply miss it? Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE!
whim Posted February 8, 2008 Posted February 8, 2008 This is a question that will make most AutoIt'ers extremely suspicious.Why ? Read up here:http://filext.com/file-extension/PIFAnd No, AutoIt provides no functions to edit them (AFAIK)
rudi Posted February 8, 2008 Author Posted February 8, 2008 (edited) whim said: This is a question that will make most AutoIt'ers extremely suspicious.Why ?Because I didn't tell the whole story? OK, what do I want to do:This is an old DOS application. It can only handle SFN, not LFN, and I want to start it from whereever it currently is.Modifying the ini like text files this App reads in at startup to get it's own paths (SFN paths) I solved using IniRead and other Ini* functions.But using run("MyOldDos.EXE",...) 1.) can't start the program successfully2.) a "@SW_MAXIMIZE" will only maximize the window (GUI window mode) and doesn't switch to fullscreen mode.So let me ask more precisely:Can I start a DOS program from autoit specifying all the params that can be specified in a PIF file?How to start a DOS program from autoit in full screen mode?Thanks for your answer,Rudi. Edited February 8, 2008 by rudi Earth is flat, pigs can fly, and Nuclear Power is SAFE!
whim Posted February 8, 2008 Posted February 8, 2008 (edited) Straight from the helpfile for Run: Quote To run DOS (console) commands, try Run(@ComSpec & " /c " & 'commandName', "", @SW_HIDE)edit: to maximize you could try to Send an Alt+Enter to the DOSBox. Edited February 8, 2008 by whim
rudi Posted February 8, 2008 Author Posted February 8, 2008 whim said: Straight from the helpfile for Run:edit: to maximize you could try to Send an Alt+Enter to the DOSBox.Yes, I know.But how to specify all the memory settings done in a PIF (conv. RAM, XMS, EMS, Environment)?And the Keys that shall not be served by windows for that app? (ALT+TAB, ALT+SPACE, ALT+PRNT,...)Disable Screensaver while the DOS EXE is the active application?Don't let the DOS app recognize it's running under Windows in a DOS BOX?That's all things I honestly don't know how to define except by a PIF... Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE!
rudi Posted February 8, 2008 Author Posted February 8, 2008 I just wondered if the PIF structure might be that simple that I could aim to figure out how to create one using Autoit3 on my own. Well, it's not really a simple file structure:http://www.smsoft.ru/en/pifdoc.htm Looks I'm the only one asking for that outdated stuff? Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE!
whim Posted February 8, 2008 Posted February 8, 2008 Well, now that you know how complex PIFs are, it will be easier to understand why most people would run 'difficult' DOS programs under straight DOS or in a virtual machine.
rudi Posted February 8, 2008 Author Posted February 8, 2008 whim said: Well, now that you know how complex PIFs are, it will be easier tounderstand why most people would run 'difficult' DOS programsunder straight DOS or in a virtual machine.Well, this is a DOS program I want to run from a USB pen drive from whatever computer I'm sitting at.Might be some Windows DLL could be abused to tell "Make a PIF with these Parameters pointing to that DOS Executable" ?In Win98SE for example, when you drag-drop a .BAT file and choose "Create a Link" in deed a .PIF is created pointing to that .BAT file.In Windows 2000 and above the same action is creating a normal file link, but anyways, there might be some DLL call solving this?Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now