X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: VirtualBox DOS how can I copy a piece of tree? Date: Mon, 21 Feb 2011 17:31:52 -0800 (PST) Organization: http://groups.google.com Lines: 132 Message-ID: <4f137927-e686-40d7-a2af-55533dcb70b8@t13g2000vbo.googlegroups.com> References: <566325 DOT 51644 DOT qm AT web45105 DOT mail DOT sp1 DOT yahoo DOT com> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1298338313 18514 127.0.0.1 (22 Feb 2011 01:31:53 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Tue, 22 Feb 2011 01:31:53 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: t13g2000vbo.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13,gzip(gfe) Bytes: 6513 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, On Feb 20, 9:53=A0pm, "Rod Pemberton" wrote: > "Pablo Marty" wrote in message > > news:566325 DOT 51644 DOT qm AT web45105 DOT mail DOT sp1 DOT yahoo DOT com... > > > can someone tell me how to copy a directory with all its subdirectories > > and files in FreeDOS with VB? I have the DJGPP folder in my CD and want t= o > transfer it complete to my VHD with just one command > > That's not related to DJGPP... =A0I'd suggest asking some questions in a > dedicated VirtualBox forum. =A0So far, I've not seen anyone here indicate= they > are familiar with VirtualBox. > ******* I have occasionally used and still use VBox, but I'm not familiar with DOS file sharing under it. > You also said the folder is on a CD, so you'll have to correctly setup > MSCDEX and your CD-ROM driver. =A0If it's not a Joliet CD, i.e., ISO9660,= your > LFNs may be incorrect, or missing for the DJGPP files. =A0If it's a Jolie= t CD, > you'll need a special drivers to recognize Joliet in DOS, e.g., GCDROM.sy= s > CD-ROM driver, SHSUCDX.exe replacement for MSCDEX w/Joliet support, and > DOSLFN w/Joliet support. http://adoxa.110mb.com/shsucdx/index.html http://adoxa.110mb.com/doslfn/index.html Some people prefer Jack's version: http://johnson.tmfc.net/dos/shsucdx.html > IMO, the easiest method to copy a directory and it's subdirectories is > LCOPY. =A0But, this is for normal DOS. > > LCOPY is a LFN (Long FileNames) copy program written by Ortwin "Odi" Gl c= k > (or Glueck). =A0It's powerful enough that you can copy the entire Windows= 98 > system directory while in pure DOS without any errors, mis-named files, > missing files, with all hidden files, with correct SFNs and LFNs, dates, > times, etc. =A0AFAIK, *NO* other tool can do that. =A0I've tried all the = DJGPP > ported GNU tools, PKZIP, and numerous others, etc. =A0*Everything* except > LCOPY will fail on properly archiving or copying a Windows 98 system > directory. =A0I.e., it works. It has problems with my P4's FAT32 recovery partition. FreeDOS can read/write it, apparently, but LDIR doesn't work. I forget exactly why, something silly (odd sector count??). Anyways, Odi long ago abandoned it, but you can find it on SourceForge. I think he used Borland C (5.x?). http://sourceforge.net/projects/lfntools/ > If you're in real DOS and not in a Windows DOS-box, you'll also need an L= FN > driver to provide LFNs to LFN compatible tools. =A0If the tools you use a= ren't > LFN compatible, they won't copy LFNs even with the LFN driver loaded. =A0= Jason > Hood's extended version of =A0Henrik Haftman's DOSLFN works well. Right, but while DJGPP tools accept this by default, most others don't. Odi's don't need it, access the hard drive directly (obviously). I would actually recommend xWCopy instead. It's a very small XCOPY clone w/ LFN support written by Ben Cadieux. There are other XCOPY tools, but I haven't used them lately, so I can't remember if one of them also supports LFNs (but most don't, that's for sure). Perhaps 4DOS has a built-in XCOPY, I can't remember. (Maybe "COPY /R" ??) http://sites.google.com/site/rugxulo/xwcpy081.zip?attredirects=3D0 http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/user/4dos/ > You could also use the last version of PKZIP and PKUNZIP, if you can find > it, 2.50. =A0It's easy to use also. =A0It has options to archive and recu= rse > without compression. =A0So, you just tell PKZIP to do that, then copy the > archive to where you want it, delete the first version, move to the curre= nt > version, then PKUNZIP it. =A0As long as you're not doing a Windows system > directory, this will work just fine. While mostly true, that's not the best solution. Esp. since it's shareware, abandoned, and not even widely distributed. Actually, I think PKWARE intentionally doesn't distribute it anymore, but they do still sell the full version! If you insist on using it, grab it (shareware) here: http://www.filegate.net/pkware/pkdos/PK250DOS.EXE Also note that distributing sfx .EXEs, even with registered version, is forbidden without a separate distribution license! Hence, Info-Zip is heavily recommended instead: ftp://ftp.sac.sk/pub/sac/pack/zip232x.zip (from memory): zip -r blah c:\blah\*.* > If you want or need to use DJGPP tools, you'll probably have to use DJTAR > and optionally GZIP. =A0DJTAR is a LFN aware clone of TAR. =A0So, you'll = still > need DOSLFN. =A0TAR packages the files into an uncompressed archive. =A0G= ZIP > compresses them. =A0GZIP is optional, but may reduce the time to copy the= TAR > archive to the new location. =A0You could use CPIO instead of TAR. =A0Tha= t may > be easier. =A0If using TAR or CPIO, you'll still have to use a procedure > similar to PKZIP, i.e., create an archive, copy it, delete the first > version, uncompress it. DJTAR doesn't create .tar, only unpacks it (and also .gz). 2.04 "beta"'s version will also unpack .bz2. I'd recommend p7zip instead: ftp://ftp.sac.sk/pub/sac/pack/p7z913.zip p7zip a blah.tar /dev/c/blah p7zip a -mx5 blah.gz blah.tar p7zip a -mx3 -ms=3D16m -m0d=3D16m blah.7z /dev/c/blah (etc. etc. etc.)