VOGONS


First post, by paul.blitz

User metadata
Rank Newbie
Rank
Newbie

You never know, SOMEONE else might be wanting to get Orcad's DRAFT (schematic capture) working with Windows 7.

I wanted to be able to click on any .sch file, and invoke DRAFT... the way I describe here may not be the only way to do it, but it does work. There are 3 simple steps:

STEP 1....
Ok, my PC is setup with DRAFT.EXE in "c:\draft\". In there I created a batch file, I called it D2.BAT, and it contains 2 lines:

c:
"\program files\DOSBox-0.74\DOSBox" -c "c:\draft\draft.exe %~nx1" -c exit

(the strange "%~nx1" bit was because if I specify "%1", I get the whole path and filename, and that screws it all up. The "%~nx1" makes it just pass the filename and extension .... see http://www.windowsitpro.com/article/server-ma … o-a-batch-file- for more)

STEP 2....
.. then in the DOSBox config file, I had, under the [autoexec] section:

mount c c:\
c:
cd c:\draft
set path=c:\draft;%path%

(I could probably have mounted "c:\draft" as "c:", but then I'd have had to run the draft configuration to reset the file locations.... what the heck, this does the job nicely!)

STEP 3....
Finally, set the file association for ".sch" files to open with D2.BAT

So, big thanks to the DOSBox team for providing a nice simple solution for me!

Reply 1 of 2, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

[Thread moved to DOSBox Games/Apps. Section]

Reply 2 of 2, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

It is generally recommended that you not mount the root directory of your drive(s), as this gives DOS applications access to your entire hard drive. In modern Windows it's probably not a big deal though unless you run DOSBox with admin privileges.