Shane67 did have the md and cd commands correct. However, your problem now is that DOS combined all your files into one when you used the copy command the first time.
Do you still have the original files you were backing up? If so, the easiest solution is to make your directory, run copy *.* c:\test\ and then delete the test.file as you won't need it anymore.
If you don't have the originals, and only have the test.file, you're in trouble. There is no automated way to split that file into the original files as DOS saved neither the filenames nor any information on where one file ended and the next began. If they're all plain text, you can type edit test.file to view it. Once in there, delete everything that isn't part of the first file, then click File and Save As and specify the first file name. Then you'll have to repeat the process for each other file that was copied into test.file. Just make sure you don't save any of them over test.file, or you'll lose the data that's in it.
If they weren't plain text, there's not really any way to break them up properly.
-John
If you are only trying to move your data file, then create the new directory using the cd command e.g. cd test. Then move the file to the new directory either using the move command or the copy command eg. copy test.file c:\test\test.file
Alternatively you should try using the old text editor program in dos to load your file and then save to the directory of your choice.
good luck
shane67
Nizam
correction to prior comment. the command to create your directory is md, not cd. cd is the command you will use to change to that directory after you create it, eg. 'md test', then type "cd test" to enter that directory and create or move files to it. sorry, haven't used dos since the 80's but still have some memories of how to work in it. hope that helps.
×
1. Check your BIOS to be sure your computer will boot from a CD.
Enter the BIOS setup by pressing the "Delete" or F2 or "F12"
key, or as directed at the startup screen, immediately after booting. Set the
first boot device to "CDROM" or "DVDROM" instead of
"hard drive" if it isn't already.
2. MS-DOS command prompt
Insert the Windows XP installation CD into your CD or DVD drive
and restart the computer. When prompted, choose to start from the MS-DOS
command prompt with CD support. The MS-DOS command prompt will appear in a
moment.
3. Start SMARTDRIVE by typing "SMARTDRV" at the DOS prompt
and pressing enter. You don't have to run SMARTDRIVE, but copying the files
will be much quicker if you do. The computer will display the DOS prompt again.
4. Enter "CD I386" at the DOS prompt to change to the
directory where the setup program starts.
5. Enter "WINNT" at the prompt to start Windows XP setup.
The installation program will copy files to your computer and then display a
message requesting to reboot.
6. Press the "Enter" key to reboot. The setup program will
start again and check that your hard drive format is compatible with Windows
XP. If not, it will guide you through partitioning and formatting the drive and
then ask you to reboot once more.
7. Press "Enter" to reboot. The computer will restart in Windows XP mode and automatically start the Windows Setup Wizard to detect your hardware and finish the installation.
Creating a batch file
MS-DOS users
Microsoft Windows and other users
MS-DOS users
To create a basic batch file in MS-DOS, follow the below steps that give you an example of how to create a basic batch file.
1. Save your text file (.txt).
2. On the command prompt navigate to that directory
3.Type "Lpr -S 192.168.1.200 -P lp text.txt"
Substitute 192.168.1.200 for your copier's ip
Substitute text.txt to filename.
Or you can: to print from MS-DOS apps.
1. Share the printer on a networked windows computer. Make sure you make the name MS-DOS compatible.
2. At a DOS prompt, type the following command:
"net use lpt1: \\servername\printer_share/persistent:yes"
NOTE Servername=computer name
printer_share=printers share name
154 views
Usually answered in minutes!
thanks for your help, really appreciate it!!
×