VOGONS


First post, by susokukan47

User metadata
Rank Newbie
Rank
Newbie

Hi everyone,

I am very confused by something. I have used DOSBox a lot in the past on multiple computers and have never seen this problem before. When I just installed DOSBox on a Win 8.1 laptop, it cannot launch any .exe files at all. Moreover, it won't launch run any .bat files placed outside of the C: drive root path. Whenever I try, it says "illegal command". I have mounted my C: drive properly in the autoexec part of the settings file and it goes there properly when I launch the program. I have never before had to change the PATH settings on other computers, but I have done that and it still won't launch any exes in the directories specified in the PATH. I have never had to do any of this tweaking before on any other computer once I set my mount path properly. I don't even remember having to add directories to the the path before.

Anyone have any advice on what is going on? Here is my autoexec:

set path=%PATH%;C:\;
@echo off
mount C C:\Users\Alex\OneDrive\DOS\
C:

Reply 1 of 11, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Is that the same autoexec you were using on other computers? I'm pretty sure the first two lines won't do anything (there is no C:\ path before C is mounted), and they could very well cause an "illegal command" message.

Moreover, it won't launch run any .bat files placed outside of the C: drive root path.

You mean after changing to the appropriate directory in which the .bat file is stored?

Perhaps you should give a more specific example of what you are typing when you are getting this "illegal command" message.

Reply 2 of 11, by susokukan47

User metadata
Rank Newbie
Rank
Newbie

I am typing the name of any application, so if I'm in the foobar directory and dir shows me foobar.exe is in it, typing "foobar" gives me an "illegal command" message.

This is true for any .exe and for any .bat file not in C:\

alex

Reply 4 of 11, by susokukan47

User metadata
Rank Newbie
Rank
Newbie

I checked my autoexec commands on my Win 7 desktop where DOSBox is working correctly and I have the exact same text (except for no set path line).

alex

Reply 5 of 11, by susokukan47

User metadata
Rank Newbie
Rank
Newbie

What's weird is that when I just downloaded a new freeware DOS game and put it in a new folder, it launched properly. The problem only seems to be with folders that I have previously synced up from my OneDrive account (I write using an old copy of WordPerfect 5.1 I kept from elementary school and like to store my files in OneDrive to centralize them). WP 5.1 works just fine on my desktop computer with the exact same configuration of DOSBox.

alex

Reply 7 of 11, by Zup

User metadata
Rank Oldbie
Rank
Oldbie

The mount instruction suggests that wpinfo is on a local hard drive, and it should be on a readable/writable directory, but... could you check your file permissions? Maybe your permissions allows you to list the directory, but don't allow you to read the files (honestly, I don't remember if dosbox have a "file access error").

Try copying the files on a FAT16 drive, FAT16 don't support that kind of permissions.

I have traveled across the universe and through the years to find Her.
Sometimes going all the way is just a start...

I'm selling some stuff!

Reply 8 of 11, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
susokukan47 wrote:

I have the exact same text (except for no set path line).

Then the obvious answer is to take out the "set path" line, is it not? I'm not clear on why you have that in there to begin with. (DOSBox certainly won't recognize %PATH%.)

Reply 9 of 11, by susokukan47

User metadata
Rank Newbie
Rank
Newbie

I did take out the PATH line and it still doesn't work. I put it in there just to experiment with setting a path, but I thought it was strange because in the past I never needed to specify a path. I'll try playing around with the file permissions; this is the first time I've used DOSBox in Win 8 / 8.1 so maybe there is something funky going on with that.

Alex

Reply 11 of 11, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Does typing "wpinfo.exe" work any better than "wpinfo" ?

What happens if you type "type wpinfo.exe" ? Does that also produce some kind of "illegal command" message?

If all else fails, try running a debug-enabled verison of DOSBox. (It's included with the SVN Daum version.)