VOGONS


copy commnad

Topic actions

First post, by MARCAGENCY

User metadata
Rank Newbie
Rank
Newbie

Hello-

I am trying to copy files from my f: drive to the directory I created.

I typed copy f:\ *.* but I get a message: illegal path.

Any help is appreciated.

Reply 1 of 4, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

You have to mount real drives/folders and use the mounts not the real paths:
Example:
Mount c c:/dosgames
Mount d f:/
Copy d:/*.* c:/

This copies everything from the mounted d drive to your c drive. Which is the same as if you copied in explorer everything from your real drive f to the folder dosgames onyour real c drive

Edit: I'm not sure whether the copy command is used like this. I prefer to not do things manually and do such things outside of dosbox 😉

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 2 of 4, by collector

User metadata
Rank l33t
Rank
l33t

It has been a while, but I don't think real DOS copy allowed wild cards, otherwise there would be little need for XCOPY. Otherwise I agree with you about doing such things from the host OS. It is far easier and faster to so.

The Sierra Help Pages -- New Sierra Game Installers -- Sierra Game Patches -- New Non-Sierra Game Installers

Reply 3 of 4, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The COPY command in DOS (and in DOSBox's shell) does support wildcards. The XCOPY external program has eXtended capability, where you can copy subdirectories and specify files by date stamp and attribute criteria. No doubt the thread starter's problem is related to mounting.

Reply 4 of 4, by collector

User metadata
Rank l33t
Rank
l33t

My comment was to Dominus' edit rather than to the OP. It has been a long time since I have done anything in real DOS. I haven't thought much about such things in DOSBox since it is easier to do file management outside of DOSBox.

The Sierra Help Pages -- New Sierra Game Installers -- Sierra Game Patches -- New Non-Sierra Game Installers