error stating âInvalid startup directory, please check your pif file. Choose
âCloseâ to terminate the application.â I know that this is a 16bit MS-DOS
Subsystem, but this is the only program I am having trouble with. I recently
upgraded to WinXP Pro, and needless to say, I was quite surprised when I
couldnât write my programs anymore.
Boy⊠now thereâs a blast from the past. QBasic has a long history dating
back to the days of MS-DOS. QBasic was the free Basic programming language
interpreter that was included with MS-DOS, and eventually Windows, though it
appears to have vanished from Windows XP, if not from earlier versions.
I feel a personal connection to QBasic. Why? I worked on it!
Become a Patron of Ask Leo! and go ad-free!
First, your question: â.PIFâ files were the way that older versions of
Windows kept track of the settings for some applications. Each application, say
QBasic.exe, would have a corresponding PIF file, such as QBasic.pif.
interpreter that was included with MS-DOSâ
In Windows XP, I believe itâs safe to simply remove the QBasic.pif file. Try
renaming it first, and seeing if that resolves your problem. You can also try
right-clicking on the PIF file in Windows Explorer, selecting
Properties, and changing the startup directory, that your
error message is complaining about.
I dug up an old copy of QBasic and fired it up, without a .PIF file, on my
Windows XP system:
Like I said it brings back memories. While at Microsoft I worked on the
on-line help technology used in QBasicâs predecessor, QuickBasic, several other
products, and in QBasic. Need proof? In a command shell, Type
the on-line help file qbasic.hlp. The first two bytes are the âsignatureâ that
define what kind of a file this is. The signature for character mode help
files? My initials: LN.
Is it safe to delete Qbasic.pif on Windows 98?
Should be ok. Copy it somewhere else as a backup, just in case.
I have been using an old MS-DOS word processing program called WordStar 2000 (WS2000) and have probably over 1000 files in several hundred client folders. The programs work fine on my Windows 98 desktop but I recently bought a Dell laptop with Windows XP and copied the WS2000 program and all of my WS2000 folder to the new laptop. When I try to access WS2000 on my lap top I get the error message, âInvalid startup directory, please check your PIF fileâ. WS2000 still works fine on my Win98 desktop. Is there some way that I can get WordStar 2000 to work on my new laptop? I am not a computer guru so I donât understand all that I read above. My real question is, does the article above apply to me. If it does, I will take the article and my laptop to a computer place to have them fix it. Thanks for your help. â Tom Green
I, too, used Wordstar. :-)
Yes, the article applies. Iâll bet you have a .pif file in the same directory as the Wordstar .exe file. Delete that and Iâll bet youâre good to go.
Free basic is a great resource for running/writing basic programs on XP systems. The FBIDE interface is also highly recommended. Better than the original Qbasic.
http://www.freebasic.net/index.php/download
When i start my computer, this appears C:WINDOWS\DEFAU I.PIF
and C:WINDOWS\o4243127.exe
What does this mean? Can you help? I use Windows XP.Thank youâŠ.
Looks like a virus or spyware to me. Iâd scan for both.
When i go install battlefield 1942 it says âInvalid program file name please check your pif file Choose âCloseâ to terminate the application someone please help.
When i start my computer, this appears C:WINDOWS\DEFAU I.PIF and after that this msg appeared âInvalid startup directory, please check your pif file. Choose âCloseâ to terminate the application.ââŠwuts going on actually with my computer?..and sometimes..my computer hang suddenly..someone please help me..T_T
I am trying to get into my business folder and then âInvalid startup directory, please check your pif file. Choose âCloseâ to terminate the application.â Can you please tell me what to do? Thank you
when i try to open qbasic 4.5 it says to check my pif file how to I do that? also how to i change my startup directory?
Dear sir,
this is mohsin from dubai when i try to start my game prince2 then coming error ( invalid startup directory please check you pif fil. choose close to terminate the application. please help me thnks
I deleted the pif files, it works so far. PIF files are the MS-DOS icons. When in doubt, search â*.pif,â and delete corrisponding (speeled rong) .pifâs from your QBasic directory.
My problem is a moody Turbo C++ program. I got the same error message. So I cleaned out all of the guilty pif files. What do I do now? How do I start it up?
I found the pif file â QB [Surprisingly it did not have the extension â.pifâ in the name, although I do not hide extensions]. In Properties > Program I set the âCmd lineâ to the correct path to the file, and âWorkingâ to the correct path to the folder. That solved the problem.
I also ticked âclose on exitâ here, & âwindowâ under Screen. Under âMemoryâ I set âEMSâ to ânoneâ, âXMSâ to âautoâ and ticked âuse HMAâ. That made it work better I think.
Thanks for your help! I no longer get the error, but now the game wonât run. It seems to run for a fraction of a second, and then disappears. Anyone know what Iâm talking about?
hi sir i wank your kind info from one question??????
i was opened TURBO C++ wizard . its warmed as unrecoverable error , why this error found plz reply me
Thanks; renaming qb.pif by dropping the .pif extension, worked.