THE WELCH COMPANY
440 Davis Court #1602
San Francisco, CA 94111-2496
415 781 5700
rodwelch@pacbell.net


S U M M A R Y


DIARY: November 2, 2003 07:55 AM Sunday; Rod Welch

SDS multi-tasking intelligenceintelligence supportwith precision access .

1...Summary/Objective
2...Applications Can be Launched from SDS Using Windows Start Command
3...000006 Macro 1063 Modify to Apply Start Command
4...000008 Macro 1363 Enter Modify Process for Opening Links
5...F1 F7 in SDS Launches New Op to Execute Start with a Filename
6...009030 Open File in SDS Record
7...Determine End of Target Line for HTTP Files to Open
8...Test Target Line and Exit for Normal Enter Ops for Narrative Lines
9...Determine End of Target Line with File Extensions for Other Programs
....DOSE Medit Limitation Solved with BAT Calling CDM Batch Ops
....Medit DOSE Limitation Solved with BAT Calling CDM Batch Ops
....00903.cmd Called by 00903.bat because DOSE Does Not Support CMD.EXE
....Results Meeting All Requirements
10...00903.cmd Iexplore.exe Run Under Start Called by 00903.bat
11...00903.BAT Call Start Command to Open a Document with Another Program
12...SDS.BAT Set Command for New Start Open a File in Another Program


..............
Click here to comment!

CONTACTS 

SUBJECTS
Long Filenames CMD 00903.cmd Called by 00903.bat in Windows Start Co
00903.bat Fails to Launch Application Because Windows 2000 Cmd.exe H
Other Programs Launch from Within SDS Based on File Extension to Mic
Launch Other Programs to Open Files with Long Filenames Failing
Launch Other Programs to Open HTML Internet Files on the Web Failing
Start DOS CMD Windows Command Launches Other Programs Called with DO

2108 -
2108 -    ..
2109 - Summary/Objective
2110 -
211001 - Follow up ref SDS 16 0000, ref SDS 12 0000.
211002 -
211003 - Made progress toward a culture of knowledge by expanding precision
211004 - access for contemporaneous analysis using multiple software programs.
211005 - Research yielded ideas, ref SDS 0 R97K, to apply long filenames for
211006 - converting information into knowledge.  SDS "intelligence support,"
211007 - enables multi-dimensional access to organizational memory based on
211008 - content of the Start command that opens files to specified locations
211009 - with grannular addressability and explicit links.  DOS command
211010 - limitations using bat files under command.com, ref SDS 0 SI5F, were
211011 - solved by using cmd op called from within a bat file. ref SDS 0 498O
211012 - The new scheme increases command and control of daily work by enabling
211013 - people to coordinate multiple tasks using multiple applications
211014 - launched from within SDS, narrowing the gap between the two (2) worlds
211015 - of information technology and working "intelligently" within a culture
211016 - of knowledge.
211018 -           ..
211019 -          [On 031112 research additional solution for virtual memory.
211020 -          ref SDS 17 RT95
211022 -           ..
211023 -          [On 040417 expanded use of 00903 to open the current SDS
211024 -          record or file on the screen, either on the Internet or on
211025 -          the local server by clicking on the filename field below the
211026 -          command line (CMD). ref SDS 18 0001
211028 -           ..
211029 -          [On 040701 Gary provided solution to problem opening
211030 -          filenames with % characters. ref SDS 21 0001
211032 -           ..
211033 -          [On 040705 Gary reported new problem; the new function 00903
211034 -          that applies cmd batch files to open files for other programs
211035 -          is not supported by w98. ref SDS 22 U693
211037 -           ..
211038 -          [On 041118 discovered using /realtime in 00903.bat increases
211039 -          performance 12 times when running on c14 3.2 GHz under
211040 -          Windows XP. ref SDS 23 TU4F
211041 -
211042 -
211043 -
211044 -
211046 -  ..
2111 -
2112 -
2113 - Evaluation
2114 -
211401 - Ideas suggested today by Eric Pement, ref SDS 0 TT7P, were
211402 - successfully tested on files that failed to launch on 031020.
211403 - ref SDS 12 F18I  This led to solving the two problems which are
211404 - discussed below, ref SDS 0 7J3F, and were mentioned in a letter to
211405 - Gary on 031028. ref SDS 14 ET5V  Additionally, seem to have found a
211406 - way to work around limitations of Medit DOSE by calling cmd.exe in a
211407 - batch file. ref SDS 0 SI5F
211409 -  ..
211410 - As a result, opening files for other programs now runs seemlessly
211411 - using Enter and clicking to open files at other locations.  This
211412 - significantly increases command and control of the work, as explained
211413 - in POIMS, ref OF 15 1113, within a framework of Knowledge Space, also,
211414 - explained in POIMS. ref OF 11 034J
211416 -  ..
211417 - During a telephone call, Gary mentioned, a day or so later, that it
211418 - would be helpful to keep F1 F7 for trying to open files created with
211419 - programs that are not supported by Enter and clicking, rather than be
211420 - limited to only using Enter and clicking on files with specified
211421 - extensions interpreted by macro 136 in 000008, per below. ref SDS 0
211422 - 8G9N
211423 -
211424 -     [On 040701 Gary writes about balancing use of function keys to
211425 -     avoid overloading Enter and double clicking. ref SDS 20 768I
211427 -  ..
211428 - As a result, restored the F1 F7 assignment to capture the line, rather
211429 - than attempt to determine whether an application may exist for the
211430 - content on the line based on encountering a file extension of some
211431 - kind. ref SDS 0 F14N  This added scheme using F1 F7 is a fall back
211432 - feature that allows the Windows Start command to make interpretations
211433 - beyond the list expressly supported by Enter, per below. ref SDS 0
211434 - 5G4H
211435 -
211436 -
211437 -
211438 -
211440 -  ..
2115 -
2116 -
2117 - Background
2118 -
211801 - Applications Can be Launched from SDS Using Windows Start Command
211802 -
211803 - Follow up ref SDS 12 6L6N.
211804 -
211805 - On 031020 developed 00903.BAT to use the Windows Start command for
211806 - opening files created with other programs.
211808 -  ..
211809 - Two problems occurred....
211810 -
211811 -    1.  Long filenames failed to open. ref SDS 12 F18I
211813 -         ..
211814 -    2.  HTML files failed to open when anchor is appended. ref SDS 12
211815 -        I19I
211817 -  ..
211818 - Work today seems to substantially solve these problems.
211820 -  ..
211821 - Research on 031030, ref SDS 16 0001, showed the cmd.exe command has
211822 - inherent limitations on the length of the filename. ref SDS 16 XU9P
211823 -
211824 -    Experience today seems to indicate that limitations on batch files
211825 -    running under command.com are more severe than with cmd.exe.  This
211826 -    explains in part failure on 031020 to load long filenames that
211827 -    nominally fit within 256 characters, ref SDS 12 F18I, which some
211828 -    authorities ascribe to cmd, yet fail when called within batch files
211829 -    called by the Medit dose command.  The problem seems to be that the
211830 -    dose command within Medit appears to somehow create an environment
211831 -    running under command.com rather than cmd.exe.  The limitation on
211832 -    length of commands in batch files called under command.com is much
211833 -    more severe than for cmd.exe.
211835 -  ..
211836 - Yesterday another source was found on the Internet that addressed the
211837 - problem with greater depth.  Submitted a letter asking for support on
211838 - the issue explained in the record on 031020. ref SDS 12 F18I
211840 -  ..
211841 - This morning received
211842 -
211843 -    1.  Subject: Re: cmd.exe command length solution
211844 -        Date: Sun, 02 Nov 2003 02:58:00 -0600
211845 -        From: "Eric Pement"
211846 -        To: Rod Welch rodwelch@pacbell.net
211848 -         ..
211849 -    2.  On 1 Nov 2003 at 22:21, Rod Welch wrote:
211850 -
211851 -        > Eric,
211852 -        >
211853 -        > Appreciated your ideas on solving the limitation on command
211854 -        > length for cmd.exe, shown in your work on the Internet at....
211855 -        >
211856 -        > http://www.student.northpark.edu/pemente/sed/bat_env.htm#linefeed
211857 -        >
211858 -        > Will this solve our problem reported on 021020....
211859 -        >
211860 -        > http://www.welchco.com/sd/08/00101/02/03/10/20/141705.HTM#F18I
211861 -        >
211862 -        > Thanks.
211864 -         ..
211865 -    3.  I'm not sure what you want to do, but I think you want to
211866 -        create a batch file which runs under WinNT, WinXP, etc., which
211867 -        will start up Internet Explorer with a very long path.  Try
211868 -        this:
211870 -             ..
211871 -        (1) the file extension should be *.cmd, not *.bat
211873 -               ..
211874 -              [On 040705 Gary reported new problem; the new function
211875 -              00903 that applies cmd batch files to open files for
211876 -              other programs is not supported by w98. ref SDS 22 U693
211878 -  ..
211879 - This turned out to be somewhat difficult, but eventually accomplished
211880 - an implementation that runs. ref SDS 0 5G4H
211882 -  ..
211883 - Eric continues...
211884 -
211885 -        (2) prefix the URL with the command "iexplore" (by default,
211886 -            Internet explorer is on the path on most systems).
211888 -             ..
211889 -        (3) cut the following item to a SINGLE LINE batch file.  My
211890 -            mail client may accidentally force the long line to "wrap",
211891 -            but if it does, please "unwrap" it and test this batch file
211892 -            out on your system. It uses the example you suggested:
211893 -
211894 -    4.  ---cut below, call the file "testme.cmd"---
211896 -         ..
211897 -        start iexplore "
211899 -         ..
211900 -        http://rd.yahoo.com/dailynews/nm/ts_nlinks/*http://rd.yahoo.com/DailyNews/manual/*http://sea
211901 -
211902 -        ---end cutting below---
211904 -         ..
211905 -    5.  The line above should be 150 characters long, more than enough
211906 -        for your test. Put "testme.cmd" on your own computer, confirm
211907 -        that it's only one single long line of 150 chars, and then try
211908 -        to run it. Let me know if this is a help to you.
211910 -         ..
211911 -    6.  Best wishes,
211912 -
211913 -        Eric Pement
211915 -
211917 -  ..
211918 - Developed the test file Eric proposed and it ran successfully.
211919 -
211920 -    Initially, there was a failure using only the program name
211921 -    iexplore.  Got a message...
211922 -
211923 -        'iexplore' is not recognized as an internal or external
211924 -        command, operable program or batch file.
211926 -     ..
211927 -    Did a search on the system and found....
211928 -
211929 -        i:\00\02\system32\dllcache\iexplore
211931 -     ..
211932 -    Using this in tst.cmd with the filename Eric submitted....
211933 -
211934 -        i:\00\02\system32\dllcache\iexplore http://rd.yahoo.com/dailynews/nm/ts_nm/inlinks/*http://rd.yahoo.com/DailyNews/manual/*http://search.news.yahoo.com/search/news?p=DMCA
211935 -
211936 -    ...resulted in opening the specified Internet address using the
211937 -    Internet Explorer program.
211939 -  ..
211940 - This record suggests a number of ideas....
211941 -
211942 -    1.  Launch the program based on the extension, rather than use the
211943 -        Widows Start command to make the interpretation. Assume if Word
211944 -        is launched, it will automatically start in a second session.
211946 -         ..
211947 -    2.  Keep current code and divide the system to handle http files
211948 -        directly with iexplore.exe separately, since IE handles long
211949 -        filenames and anchors, whereas the Windows start command fails
211950 -        to handle long names and anchors.  Since long filenames mostly
211951 -        occurs with Internet files, this change will solve a lot of the
211952 -        problem.
211954 -  ..
211955 - Further testing revealed a new problem....
211956 -
211957 -    Medit commands "dos" and "dose" seem to present an environment that
211958 -    runs batch files using bat, but not cmd, as Eric proposes today,
211959 -    per above. ref SDS 0 R97K
211961 -  ..
211962 - After trying a million combinations and speculations of this and that,
211963 - tried calling a cmd batch op from within a bat op, per below.
211964 - ref SDS 0 498O  This seems to work, and so solves the problem of long
211965 - filenames, reported on 031020, ref SDS 12 F18I, and further enables
211966 - opening files to specific locations using HTML anchors, solving the
211967 - problem, also, reported on 031020. ref SDS 12 I19I
211968 -
211969 -          [On 040618 revised scheme to make 00903.cmd only processor
211970 -          for opening other applications and opening files on the
211971 -          Internet. ref SDS 19 OA4F
211973 -           ..
211974 -          [On 041118 discovered that adding /realtime to 00903.bat
211975 -          increases speed on c14 3.2 GHz under Windows XP by a factor
211976 -          of 12, comparable to using c13. ref SDS 23 9239
211977 -
211978 -
211979 -
211981 -  ..
2120 -
2121 -
2122 - Progress
2123 -
212301 - 000006  Macro 1063 Modify to Apply Start Command
212302 -
212303 - Follow up ref SDS 12 JY7G.
212304 -
212305 - Line 1820, ref OF 4 OV3J, -label doc_of in 000006 about 40 lines
212306 - below
212307 -
212308 -    -if @0 = 20 -goto nofwaap
212309 -
212310 -        Changed 16 to 20 to accomodate adding two new tests for opening
212311 -        Internet files, per below. ref SDS 0 5G6O
212312 -
212313 -
212315 -  ..
212316 - 000008  Macro 1363 Enter Modify Process for Opening Links
212317 -
212318 - Follow up ref SDS 12 8G9N.
212319 -
212321 -  ..
212322 - Line 1210, ref OF 5 313J, -label ekopgfg in 000008 about 30 lines
212323 - below
212324 -
212325 -    errorcnt 0 0
212326 -    macro 6
212327 -    -if @47 != 2 -goto n472SD
212328 -    macro 1363....................................... ref SDS 0 6F6M
212329 -    -if @0 = 20 -goto n472SD
212330 -    @c:\sd\03\00903
212331 -    -if @1 - 1 -goto n472SD..........................
212332 -    -exit
212333 -
212334 -        When Enter or double click occurs, macro 6 sets mark 1 to
212335 -        restore the original position after processing.  If this is not
212336 -        an SDS op, then proceed with normal Enter ops.  Call new macro
212337 -        1363 to test the line for a file extension that can be opened
212338 -        with another application software program; if counter 0 = 20
212339 -        set in macro 1363 then none of the file extensions supported
212340 -        for calling another application are on the line, so -goto
212341 -        n472SD continues normal processing for the Enter key and double
212342 -        clicking.  If 0 does not equal 20, then a file extension was
212343 -        found that could be an actual file to open with another
212344 -        program.  Another test is performed by macro 00903 on the lines
212345 -        above and below the target line.  If these lines are not blank,
212346 -        then assume there is a file extension entered as part of the
212347 -        narrative of a text paragraph, and process the normal Enter and
212348 -        double click function.   If both lines are blank, or if there
212349 -        is only an anchor on the line above the target line, then
212350 -        assume this is a filename for another application, and call the
212351 -        new routine 00903 to open the file with the appropriate
212352 -        application.
212353 -
212354 -
212355 -
212357 -  ..
212358 - Line 1270, ref OF 5 J35J, -entry 1363 in 000008 about 30 lines below
212360 -  ..
212361 - Modify this code to identify an Internet address...
212362 -
212363 -    -entry 1363...................................... ref SDS 0 UH6L
212364 -    errorcnt 0 0
212365 -    loc_cur 0 1
212366 -    z 1 230
212367 -    fr /http/
212368 -    fr /HTTP/
212369 -    -if @0 < 2 -goto in5rnet
212370 -
212371 -        Decided to test first for Internet files based on the beginning
212372 -        of the string having http or HTTP because many files on the
212373 -        Internet do not end with htm nor html.  Where this string
212374 -        occurs at the beginning will try to open the file with IE, per
212375 -        below. -goto in5rnet
212377 -         ..
212378 -        As shown below, the prior code will continue to look for common
212379 -        Internet file extensions and these can can opened as local
212380 -        files, rather than on the Internet.
212382 -     ..
212383 -    fr /.asc/
212384 -    fr /.ASC/
212385 -    fr /.com/
212386 -    fr /.COM/
212387 -    fr /.doc/
212388 -    fr /.DOC/
212389 -    fr /.xls/
212390 -    fr /.XLS/
212391 -    fr /.ppt/
212392 -    fr /.PPT/
212393 -    fr /.htm/
212394 -    fr /.HTM/
212395 -    fr /.html/
212396 -    fr /.HTML/
212397 -    fr /.txt/
212398 -    fr /.TXT/
212399 -    fr /.pdf/
212400 -    fr /.PDF/
212401 -
212402 -        For time being only above 20 application extension types are
212403 -        supported by Enter and clicking for opening files with other
212404 -        programs.  The following and others, for example a design
212405 -        drawing or something, can be added if needed, and in any case
212406 -        may be supported by the alternate scheme using F1 F7 to
212407 -        interpret a line and open a file if possible. ref SDS 0 F14N
212408 -
212409 -            [On 040701 Gary writes about balancing use of function keys
212410 -            to avoid overloading Enter and double clicking. ref SDS 20
212411 -            768I
212413 -       ..
212414 -      fr /.jpg/
212415 -      fr /.JPG/
212416 -      fr /.GIF/
212417 -      fr /.gif/
212418 -
212419 -    -exit
212420 -
212421 -        Even though macro 1363 looks first for http and HTTP, per
212422 -        above, ref SDS 0 5G4H, we also need to look for file extensions
212423 -        .HTM and .htm, because there can be files on the local server
212424 -        rather than on the Internet to open with a browser program,
212425 -        like IE.  After all of the supported application extensions
212426 -        have been checked, the error counter set above, ref SDS 0 UH6L,
212427 -        will show if any were encounterd, and in that case after
212428 -        exiting from macro 1363, the code will do further testing
212429 -        before calling 00903 to set up a Windows Start command calling
212430 -        a cmd op per Eric's recommendation for handling long filenames.
212431 -        see above, ref SDS 0 R97K
212432 -
212433 -
212435 -  ..
212436 - Line 1330, ref OF 5 5722, -label n472SD in 000008
212437 -
212438 -    -label n472SD
212439 -    getscr 1
212440 -    setcnt 0 0
212441 -    chrcnt 62 0
212442 -
212443 -        Added new label n472SD for continuing enter and double click op
212444 -        when new code per above does not encounter a line that can be
212445 -        processed by 00903 to open a file for another application.  The
212446 -        initial test offsets the screen, so getscr 1 is moved to this
212447 -        location after the test is performed, and after running 00903
212448 -        to further test whether a line that has an extension for
212449 -        another application is intended for opening a file, or is
212450 -        merely part of the narrative.
212451 -
212452 -
212453 -
212455 -  ..
212456 - F1 F7 in SDS Launches New Op to Execute Start with a Filename
212457 -
212458 - Follow up ref SDS 12 F14N.
212459 -
212460 - Line 2400, ref OF 5 4562, -entry 158 in 000008
212461 -
212462 -    pf7 @c:\sd\03\00903 #3
212463 -
212464 -        Now that we have experience using Enter and clicking to apply
212465 -        this feature, will try disconnecting pf7, since it needs more
212466 -        work to implement the new feature developed today that solves
212467 -        the problems reported above. ref SDS 0 7J3F
212469 -         ..
212470 -        Per above, Gary asked to use F1 F7 to try loading a file for
212471 -        which an extension is not defined in SDS under macro 136, per
212472 -        above. ref SDS 0 5G4H  So, put this back and developed code to
212473 -        support it in 00903.
212474 -
212475 -            [On 040701 Gary writes about balancing use of function keys
212476 -            to avoid overloading Enter and double clicking. ref SDS 20
212477 -            768I
212478 -
212479 -
212480 -
212482 -  ..
212483 - 009030  Open File in SDS Record
212484 -
212485 - Follow up ref SDS 12 TC4K.
212486 -
212487 - Line 110, ref OF 1 PW5H, in 00903
212488 -
212489 -    -goto start
212490 -    -goto cmd
212491 -    -label cmd
212492 -    setcnt 77 1
212493 -    -goto cm2d
212494 -    -label start
212495 -    setcnt 77 0
212496 -    -label cm2d
212497 -    macro 153
212498 -    macro 157
212499 -
212500 -        Changed the code to process files that begin with http
212501 -        differently using a new utility 000903.cmd created today, that
212502 -        is called by 00903.bat, developed on 031020. ref SDS 12 TC6G
212503 -        When Enter or clicking occurs on a line without http, then
212504 -        00903 runs from line 1 which goes to -label start and sets flag
212505 -        77 0 to open local files.  When Enter or clicking occurs on a
212506 -        line with http then 00903 runs from line 2 which goes to -label
212507 -        cmd and sets flag 77 1 to open files on the Internet using the
212508 -        new 00903.cmd batch file.
212510 -           ..
212511 -          [On 040618 revised scheme to make 00903.cmd only processor
212512 -          for opening other applications and opening files on the
212513 -          Internet. ref SDS 19 OA4F
212514 -
212515 -
212517 -  ..
212518 - Line 130, ref OF 1 SE4I, -label start in 00903 about 60 lines below
212519 -
212520 -    -if @77 != 1 -goto btchop...................... ref SDS 0 SA6F
212521 -    fl / /
212522 -    rel_cur 0 1
212523 -    savescr 11
212524 -    eol
212525 -    setcur 70 0
212526 -    getscr 11
212527 -    -goto ie2
212528 -
212529 -        If 77 = 1 this is an HTTP op that runs Internet Explorer, so
212530 -        find the beginning, savescr 11 saves that location, and then
212531 -        jump to the end to capture the last column, so the code later
212532 -        knows when to stop, then jump back to the beginning, and go to
212533 -        common code for capturing the string to process.
212534 -
212536 -  ..
212537 - Determine End of Target Line for HTTP Files to Open
212538 -
212539 - Line 160, ref OF 1 QX6J, -label btchop in 00903
212540 -
212541 -    -label btchop.............................. ref SDS 0 SA4H
212542 -    setcur 70 0
212543 -    of 0
212544 -    loc_cur 0 8
212545 -    aw
212546 -
212547 -        This code executes when macro 136 in 000008 finds a file
212548 -        extension for another program.  setcur 70 captures the end
212549 -        of the line length, so the code later knows when the full
212550 -        length has been processed.  offset the file back to column 1
212551 -        and then jump to the beginning of the string.
212552 -
212553 -
212554 -
212556 -  ..
212557 - Test Target Line and Exit for Normal Enter Ops for Narrative Lines
212558 - Determine End of Target Line with File Extensions for Other Programs
212559 -
212560 - Line 180, ref OF 1 KL9L, -label ie2 in 00903
212561 -
212562 -    -label ie2
212563 -    rel_cur -1 0
212564 -    setlen 1 0
212565 -    chrcnt 3 0
212566 -    rel_cur 2 0
212567 -    setlen 2 0
212568 -    rel_cur -1 0
212569 -    setcur 71 0
212570 -    -if @2 > 9 -goto tlpn
212571 -    -if @1 < 10 -goto pltop
212572 -    subcnt 1 @71
212573 -    -if @3 = 60 -if @1 < 6 -goto pltop
212574 -    -label tlpn
212575 -    setcnt 1 1
212576 -    -goto pEnter
212577 -    -label pltop
212578 -
212579 -        This code verifies the line to process is not simply a file
212580 -        extension that is part of narrative.  The prior code has moved
212581 -        the cursor to the beginning of the line, rel_cur -1 0 checks
212582 -        the line above and chrcht 3 0 captures the 1st char to see if
212583 -        is an anchor symbol <, and then capture the line length.  Move
212584 -        the cursor 2 lines below to the check the line below the target
212585 -        line.  Get beginning position of the line with setcur 71 0.  If
212586 -        the line below the target line, is not blank, then this is a
212587 -        narrative para, so jump out of the 00903 op by setting a flag
212588 -        to run normal macro 136 Enter and double click ops.  subcnt 1
212589 -        @71 gets the actual length of the line, and it if longer than 5
212590 -        char then this is narrative, so jump out of op.  If if the line
212591 -        is only 5 char and if the 1st char is an anchor op, <, then
212592 -        execute code in 00903 to open the file on the target line.
212593 -
212594 -
212595 -
212597 -  ..
212598 - Line 490, ref OF 1 515L, -label dnapd in 00903
212599 -
212600 -    -label dnapd
212601 -    setcnt 87 0
212602 -    macro 1188
212603 -    markcur 4
212604 -    -if @77 != 1 e c:\sd\01\00903.bat
212605 -    -if @77 = 1 e c:\sd\01\00903.cmd
212606 -
212607 -        Changed code developed on 031020, ref SDS 12 PO7I, to now open
212608 -        00903.cmd, per below, and enter the specification for http
212609 -        files, and open 00903.bat to enter the specification when
212610 -        processing all other files. per above. ref SDS 0 TC4K  As shown
212611 -        below, the 00903.cmd file will be called from within 00903.bat
212612 -        when http files are processed.  Also shown below, 00903.cmd
212613 -        includes a set command that calls iexplore.exe to open http
212614 -        files which is able to recognize standard HTTP commands for
212615 -        anchors, so this solves the problem that occurred on 031020,
212616 -        per above. ref SDS 0 9C6O
212618 -         ..
212619 -        Changed macro 1188 by adding call setgbl 220 0, because for
212620 -        some reason, if global 220 is already set to a value, and if
212621 -        counter 220 is 0, then global is reset to 0.
212622 -
212623 -
212625 -  ..
212626 - Line 600, ref OF 1 XG3J, -label ocfwb8 in 00903.cmd
212627 -
212628 -    -label ocfwb8
212629 -    ic 34
212630 -    of 0
212631 -    z 8 500
212632 -    c/%/%%/1 *
212633 -    save
212634 -    ecur 4
212635 -    purge c:\sd\01\00903.cmd
212636 -
212637 -        Modified work on 031020, ref SDS 12 747N, Gary learned from
212638 -        experience working with the ACE system that the code has to
212639 -        change % char in URL string to double %% because the CMD
212640 -        process or in NTVD that replaced DOS uses % for something, and
212641 -        evidently a doubld %% solves the problem.
212642 -
212643 -            [On 040701 Gary discovered a solution of converting % to %%
212644 -            in a filename parameter to open on the Internet or an
212645 -            intranet. ref SDS 19 WM8O
212646 -
212647 -
212648 -
212649 -
212650 -
212651 -
212652 -
212653 -
212654 -
2127 -

SUBJECTS
Dose Commands Failing to Execute DOS Commands

2203 -
220401 -     ..
220402 -    DOSE Medit Limitation Solved with BAT Calling CDM Batch Ops
220403 -    Medit DOSE Limitation Solved with BAT Calling CDM Batch Ops
220404 -    00903.cmd Called by 00903.bat because DOSE Does Not Support CMD.EXE
220405 -
220406 -
220407 - Line 280, ref OF 1 5I9H, -label cesfso in 00903 about 40 lines below
220408 -
220409 -    -label cesfso
220410 -    ecur 5
220411 -    ic 34
220412 -    save
220413 -    ecur 4
220414 -    -if @77 != 1 -goto e009
220415 -
220416 -        The code created on 031020, ref SDS 12 747N, was modified today
220417 -        by adding -if @77 != 1 -goto e009 which opens files that are
220418 -        not http using 00903.bat.  Passing through this conditional
220419 -        handles http files by modifying 00903.bat to call 00903.cmd
220420 -        configured in the prior step
220421 -
220422 -           [On 040618 changed the scheme to make processing in
220423 -           00903.bat only call the Windows start command to run
220424 -           00903.cmd, and all variable are now entered in 00903.cmd,
220425 -           simply by changing the set command. ref SDS 19 VV8J
220427 -     ..
220428 -    e c:\sd\01\00903.bat
220429 -    top
220430 -    z 1 1
220431 -    l /%/
220432 -    immed d
220433 -    down
220434 -    immed a
220435 -    up
220436 -    ins_text !%STR% /min c:\sd\01\00903.cmd!
220437 -
220438 -       Use standard "STR" environment set in sds.bat, ref SDS 0 NW3N,
220439 -       with a /min param to place the dos window on the command tray,
220440 -       rather than display it open on the desktop. We have to use this
220441 -       method of calling the .cmd file within the batch file, because
220442 -       for some reason Medit opens an environment that runs command.com
220443 -       which does not recognize the cmd file extension, but does
220444 -       recoginze the bat file extension.  So, use 00903.bat to call the
220445 -       Windows cmd.exe command which in turn can run the start comand
220446 -       to open a new environment that runs iexplore.exe with a longer
220447 -       filename than command.com supports.
220449 -     ..
220450 -    save
220451 -    ecur 4
220452 -
220453 -       Write 00903.bat to the disk and return to 00903 to continue.
220454 -
220455 -
220457 -     ..
220458 -    Results Meeting All Requirements
220459 -
220460 -    Follow up ref SDS 12 Y45I.
220461 -
220462 -    Seem to have solved all of the problems reported on 031020, and per
220463 -    above. ref SDS 0 7J3F
220465 -     ..
220466 -    Experimenting shows the new system opens the files that would not
220467 -    open listed in the record on 031020. ref SDS 12 F18I
220468 -
220469 -
220471 -  ..
220472 - 00903.cmd  Iexplore.exe Run Under Start Called by 00903.bat
220473 -
220474 - Line 30, ref OF 3 J03M, in 00903.cmd
220475 -
220476 -    set SIE=%systemroot%\system32\dllcache\iexplore.exe
220477 -    %SIE% ......
220478 -
220479 -        This 00903.cmd batch file is a new method suggested today by
220480 -        Eric, per above, ref SDS 0 R97K, because cmd.exe supports
220481 -        longer filenames (up to 256 char (some authorities discuss 2K),
220482 -        and enables calling iexplore.exe to open html files with
220483 -        anchors appended to the filename.  Experience today showed that
220484 -        00903.cmd could not be called directly by SDS code in 00903
220485 -        because the Medit dose command calls command.com rather than
220486 -        cmd.exe, per above. ref SDS 0 ON6K  Therefore, 00903 edits, per
220487 -        above, ref SDS 0 OO4G, 00903.bat, to call 00903.cmd in a
220488 -        Windows Start op, per below. ref SDS 0 TC6G  00903.cmd includes
220489 -        a set command to call iexplore, rather than put the set command
220490 -        in sds.bat because in the next session of memory opened by
220491 -        00903.bat, the sds.bat environment will not be active.
220493 -           ..
220494 -          [On 031112 could not come up with a more direct solution in
220495 -          Medit for dose. ref SDS 17 4N48
220497 -           ..
220498 -          [On 040618 revised scheme to make 00903.cmd only processor
220499 -          for opening other applications and opening files on the
220500 -          Internet. ref SDS 19 498O
220502 -           ..
220503 -          [On 041118 discovered using /realtime in 00903.bat increases
220504 -          performance 12 times when running on c14 3.2 GHz under
220505 -          Windows XP. ref SDS 23 TU4F
220506 -
220507 -
220508 -
220510 -  ..
220511 - 00903.BAT  Call Start Command to Open a Document with Another Program
220512 -
220513 - Follow up ref SDS 12 TC6G.
220514 -
220515 - Line 30, ref OF 2 J03M, 00903.bat
220516 -
220517 -        No changes to this batch file.  00903 now modifies and uses
220518 -        00903.bat differently from the original purpose, but this does
220519 -        not cause any extra work or problem of any kind. ref SDS 0 ON6K
220521 -         ..
220522 -        May turn out that if Medit cannot be modified this two step
220523 -        process may be the way to run all activity through 00903 by
220524 -        using 00903.bat as a call to 00903.cmd.
220525 -
220526 -            [On 040618 circumstances evolved that required implementing
220527 -            modifications to 00903.bat and 00903 to accomplish the
220528 -            design scheme anticipated today. ref SDS 19 SA9I
220530 -             ..
220531 -            [On 041118 discovered using /realtime in 00903.bat
220532 -            increases performance 12 times when running on c14 3.2 GHz
220533 -            under Windows XP. ref SDS 24 TU4F
220534 -
220535 -
220537 -  ..
220538 - SDS.BAT  Set Command for New Start Open a File in Another Program
220539 -
220540 - Follow up ref SDS 12 NW3N.
220541 -
220542 - Line 40, ref OF 6 LV4K, in SDS.BAT
220543 -
220544 -    set STR=%systemroot%\system32\cmd.exe /C start /I "SDS"
220545 -
220546 -        No code change required; using this set command in 00903.bat
220547 -        for calling 00903.cmd, per above. ref SDS 0 OO4G
220548 -
220549 -
220550 -
220551 -
220552 -
220553 -
220554 -
2206 -































R>