| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
FOR /F: in MS-DOS 6.22 does not wor
|
Original Message
|
Name: Danny84
Date: May 20, 2005 at 06:23:55 Pacific
Subject: FOR /F: in MS-DOS 6.22 does not worOS: MS-DOS 6.22CPU/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.
Report Offensive Message For Removal
|
|
Response Number 3
|
Name: Mechanix2Go
Date: May 20, 2005 at 09:44:30 Pacific
|
Reply: (edit)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.
Report Offensive Follow Up For Removal
|
|
Response Number 4
|
Name: Danny84
Date: May 24, 2005 at 00:29:57 Pacific
|
Reply: (edit)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)
Report Offensive Follow Up For Removal
|
|
Response Number 7
|
Name: Acyf
Date: June 1, 2005 at 18:21:58 Pacific
|
Reply: (edit)There is a trick to using pipes and redirection for getting the contents of a text file into an environment variable, at least in XP. When I get to work tommorrow, I will test it out in 6.22 and see if it works there as well. If it does, I will let you know.
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Disk Operating System Forum Home