[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Workaround for DIR in VBox



Sounds like this will be a valuable addition.

I believe there has been a U2 frame for calling long filename files (Windows style, perhaps also having non-lower-ASCII characters as part of the name), which could not otherwise normally be displayed or accessed.  What about those ?  Many of us have tried to adhere to the old standard 8.3 lower-ASCII file nomenclature, stored on a FAT-32 partition, and not too many DIR levels deep, but this ceased to be the prevailing format quite some time ago. 

I even run into problems in a VDM under Windows, trying to do some command line functions.  It may be necessary to use quotation marks around a file or directory name.  Sometimes even that does not work, or the file or Dirname is just too long or too many levels deep for this to work.  I'm sure many of us have had to copy a file we wanted to work on to a temp (closely off-root) location, giving it a temporary 8.3 name in the process.  NB does not have such issues . . . but then I don't use NB much, except for printing something out -- perhaps wirelessly -- on contemporary printers.


   Jordan



From: Carl Distefano
To: XyWrite Mailing List
Sent: Sunday, August 3, 2014 4:56 PM
Subject: Workaround for DIR in VBox


Last year I wrote a U2 frame called BDIR, to work around XyWrite's
inability to display DIRectory listings of a shared drive when
XyWrite is running under VirtualBox. However, since I wasn't running
Xy in a VM then, I couldn't really test it. Now I have, and it seems
to work well. (It works with any drive, not just shared drives -- a
full substitute for the DIR command.)

A nice extra is that BDIR preserves the point-and-shoot capability
of normal XyWrite DIR listings: you can CAll a file, or ChDir to a
directory, by pointing at its name in the BDIR listing.

BDIR accepts DOS DIR command switches args, and, of course,
filespecs. So, for example, BDIR/o-d *.txt lists all .txt
files in reverse date order (newest first).

Frame BDIR is attached to this message (as BDIR.FRM) and encoded
below (XYDEC to decode). Once you import the code into
XyWrite, DeFine the whole thing and issue ADD2U2 to install
it in your U2 file. Feedback welcome.

'%--_XYENCode_start--
{{5bdir*}}_Display_DOS_dir_listings_in_XyWrite_(Win32',_after_
BIGDIR.PM)_[CLD_rev.12/8/13]'^~B',*',_______Usage_BDIR[/switch
es]_[filespec]'^~'BXes_1'Q2'DX~king...~>',*','^~~>~~03~>~+~+"/-n/-p"~>',*','^~<0~>
~
~~~>~~>'JM2.GetPath
'Q2',*','^~+"\DIR.TMP"~>'BXernv_~'Q2'BXwa
it'Q2',*','^~~>~+"'Q2"~>
'BXd_xd=0'Q2',*','^~+"\DIR.T0P"~>'BXernv_~
'Q2'BXwait'Q2~'BXsa_'/06,~'Q2'BXwait'Q2',*','^~≪br>SX06,"@echo_off'^cmd.exe_/c_"+~~>~~6,~+"_"+~~>~',*','^~+">"+~02~>+"'^del_"+~+"'^"~>~+"\DIRT0P.BAT"~>'BX
sa_'/06,~'Q2'BXwait'Q2',*','^'BXdos/nv/x/z_/c_~'Q2
'BXwait'Q2',*','^~~'BXexist_~'Q2~~
~>~'BXp'Q2~',*','^~~output~>~'^~'BXernv_~'Q2'BXwait'Q2'BXernv_~≪br>PV03~>'Q2'BXwait'Q2',*','^~~>'BXfunc_#~'Q2
'BXdir/pa_~'Q2'TG'TF'YD'DF'BF'BF'DF'DN~~M132DI~>~>~',*','^'BXme_~'Q2'BXwait'Q2'BXernv_~≪br>PV02~>'Q2'BXwait'Q2',*','^'TF~~'BXse_"~J;X;X;X;
X;X;X;X;X_"'Q2~mailto:IF@not; href="mailto:IF@not(~)~>~~'^~'TG'TF~≪br>PV04~>~~>~mailto:PR@01~>~~~~B
'^'^
'%--_XYENCode___end--

--
Carl Distefano
mailto:cld@xxxxxxxx