Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
FOR /F: in MS-DOS 6.22 does not wor
Name: Danny84 Date: May 20, 2005 at 06:23:55 Pacific OS: MS-DOS 6.22 CPU/Ram: Pentium 2, 266 MHZ, 64 MB
Comment:
hi!
i would like to make a copy of a folder to a mapped network folder. i have a MS-DOS 6.22 (standalone!) PC. the folder name changes dinamically and it is written in a file called PRUEFNR (is automatically generated by an instrument connected to the PC). The file PRUEFNR contains only a line and there is written a number, "84235" for example. this is simple done on a W2K system with this batch file go.bat:
GO.BAT listing: for /f %%l in (pruefnr) do set folder=%%l copy c:\fpmc\%folder%\*.* v:\%folder% /x set folder=
unfortunatelly the command For in MS-DOS 6.22 (Standalone!) does not support the /f option. Does anyone how to do? What it has to be done is to list the file PRUEFNR and use it's content as input to the batch file GO.BAT. I also tried with pipes, redirections, but did not succeeded :-(. i would like to solve without third party tools.
Name: Mechanix2Go Date: May 20, 2005 at 09:23:49 Pacific
Reply:
I'm lost.
Is this one BAT or two?
Are you passing it a file or directory name?
M2
If at first you don't succeed, you're about average.
0
Response Number 2
Name: wizard-fred Date: May 20, 2005 at 09:32:15 Pacific
Reply:
A little inconsistancy here. A mapped network drive on a standalone computer.
0
Response Number 3
Name: Mechanix2Go Date: May 20, 2005 at 09:44:30 Pacific
Reply:
Hi wizard-fred,
Yeah, don't remember much about Novell but I used to make lastdrive=v to leave 4.
The inconsistency that threw me was file / folder.
M2
If at first you don't succeed, you're about average.
0
Response Number 4
Name: Danny84 Date: May 24, 2005 at 00:29:57 Pacific
Reply:
I would like to create only one batch file. What I'm passing is a folder name. It is stored in the file PRUEFNR. The PC is connected to a network. The mapped network folder is called G: (I said "standalone" to say that it's a MS-DOS 6.22 OS and not a DOS shell of 9X/NT.. sorry)
Summary: Major problem here is that MS-DOS 6.22 does not support FAT32. In so far as it will not even bootstrap (startup) so ahow will it be able to access a driver? What someone needs to do is hack IO.SYS or ...
Summary: hi thanks 2 any1 readind this,can any1 help, got a home buildt computer, deleted wins 95 by miss take now its sat in dos, can u tell me how 2 rebout, its a pentium ? 133, do i boot it up with dos or w...