THE WELCH COMPANY
440 Davis Court #1602
San Francisco, CA 94111-2496
415 781 5700


S U M M A R Y


DIARY: January 6, 2003 10:14 AM Monday; Rod Welch

Called Morris for help with Windows start command.

1...Summary/Objective


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

CONTACTS 
0201 - Intel Corporation                            408 765 8080
020101 - Mr. Morris E. Jones; Business Unit Manager =408 545 9521
020102 - morris.jones@intel.com
020103 - Cable Network Operation

SUBJECTS
Launch Other Programs from Within SDS Using Windows Start Command
Start Other Programs from Within SDS Using Windows Start Command
Start Windows Command Launches Other Programs Called with DOSE /C Ope
Start Command Launches Separate Session Used with CMD Command
CMD /C Exit Needed in Batch File
Instructions to Use Start with CMD and DOS Batch Files
Start CMD DOS Batch Can Save Memory by Opening Separate Window
Help DOS Listed Under Windows 2000 Command Reference
Start Windows Command Experiments
Start Windows Command Save Memory Run SDS in Separate Sessions

2112 -
2112 -    ..
2113 - Summary/Objective
2114 -
211401 - Follow up ref SDS 23 UZ6G, ref SDS 9 0001.
211402 -
211403 - Morris is working on his annual review for his boss.  He prepares the
211404 - report and his boss edits and submits it.
211406 -  ..
211407 - Asked about creating a "start" command, that calls the Windows 2000
211408 - "start" command in the way that he created an attr command on 021220,
211409 - ref SDS 27 0001, so we can solve probelm on 021016 that this does not
211410 - seem to work with dose in Medit. ref SDS 23 U1PT
211412 -  ..
211413 - Explained difficulty getting this work on 021016, ref SDS 23 U1PT, and
211414 - this may prevent progress with Gary's ideas for calling external
211415 - programs, reported on 021228. ref SDS 28 0001
211417 -  ..
211418 - We worked for about an hour or so by phone tyring to call the Windows
211419 - start command from within Medit using dose, and encountered  same
211420 - problem that occurred trying to call the dir command on 021230.
211421 - ref SDS 29 0001
211423 -  ..
211424 - Morris indicated he cannot create an Medit command to call Windows
211425 - start using code methods similar to code he created for the new attr
211426 - command, per above. ref SDS 0 0001  He needs documentation from
211427 - Microsoft on how to call the start command.
211429 -  ..
211430 - We discussed contacting Microsoft for support.  Morris is positioned
211431 - to frame the question and follow up for obtaining what he needs to
211432 - perform this work.  He indicated there is not enough time for him to
211433 - make this contact, and that advancing SDS is not a big enough priority
211434 - to make the effort.  We considered looking for ideas on the Internet.
211436 -  ..
211437 - During our call did a search for...
211438 -
211439 -             Windows 2000 DOS start
211441 -  ..
211442 - Found information at...
211443 -
211444 -    http://www.beyondflash.com/content/ch03.htm
211445 -
211446 - ...citing differences between W98 and W2K on using start, that may be
211447 - helpful to us....
211449 -  ..
211450 - This resource says in part....
211451 -
211452 -      You pass arguments to the command processor using the /C switch
211453 -      like this:
211454 -
211455 -               command.com /C start file.pdf
211457 -                ..
211458 -               cmd.exe /C start file.pdf
211459 -
211460 -      ...explaining ideas for using start command for w2k. ref OF 1
211461 -      SV96
211463 -  ..
211464 - This new information was submitted to Morris with a link to the
211465 - article.
211467 -  ..
211468 - Morris said he will look at the article, after he completes his annual
211469 - review later today, and let me know if he sees potential to accomplish
211470 - the objective to add a "start" command to Medit for calling another
211471 - session of Windows.
211472 -
211474 -  ..
2115 -
2116 -
2117 - 1311
2118 -
211801 - Called Gary and explained difficulties calling "start" as shown in the
211802 - record on 021016, ref SDS 23 U1PT, per work above with Morris.
211803 - ref SDS 0 0001
211805 -  ..
211806 - Gary sent an email with a program file (****.exe), which he has had
211807 - success using to launch another Windows session from within Medit
211808 - using the new menu call for this developed on 021228. ref SDS 28 0001
211810 -  ..
211811 - Today, we tried further to get the "start" command to run with dose
211812 - from within Medit on my computer under w2k, per above efforts with
211813 - Morris. ref SDS 0 CP5G
211815 -  ..
211816 - We worked for another hour or so by phone, and finally concluded that
211817 - W2K and W98 are sufficiently different to prevent using start in w2k
211818 - the way he has initially proposed for w98.
211820 -  ..
211821 - Gary indicated he will work on this to find a solution so we can use
211822 - the new feature he developed on 021228.
211824 -      ..
211825 -     [...below, new information seems to solve problem. ref SDS 0 EZ3N
211827 -      ..
211828 -     [On 030109 notified Gary of solution. ref SDS 30 2I4F
211829 -
211830 -
211831 -
211833 -  ..
2119 -
2120 -
2121 - 1542
2122 -
212201 - Later in the afternoon, further review of the article shows...
212202 -
212203 -      But, CMD.EXE only exists on NT/2K/XP so this is very platform
212204 -      specific. Unless you're willing to ask your users which system
212205 -      they're using (and assuming they know) this solution isn't very
212206 -      good. What we need is a way to call START that will work on all
212207 -      platforms. Luckily, DOS provides a mechanism to do this, BAT
212208 -      files and Flash can launch BAT files. ref OF 1 SV64
212210 -       ..
212211 -      First we need to create a BAT file that can do what the START
212212 -      command does. ref OF 1 SV6B That part is easy, just create a BAT
212213 -      file called DOSTART.BAT put the following line in it:
212215 -       ..
212216 -      start %1
212218 -  ..
212219 - This new information seems to solve the problem encountered on 021016,
212220 - ref SDS 23 U1PT, by using code in a batch file like...
212221 -
212222 -         i:\00\02\system32\cmd.exe /C start c:\sd\01\sds.bat
212223 -         exit
212225 -  ..
212226 - Moreover, it appears this same thing can be run from the command line
212227 - without a batch file.  So, whereas we spent hours and days trying to
212228 - get dose /c start to run, and even tried dose /c cmd start among a
212229 - thousand other combinations that all failed. The following runs....
212230 -
212231 -
212232 -                 dose /c cmd /C start .....
212233 -
212234 -
212235 - ...exactly as needed.  The idea of calling cmd /C start in a batch
212236 - file is to make the solution generic, since earlier versions of
212237 - Windows work differently.
212238 -
212239 -     [On 030109 notified Gary of solution. ref SDS 30 2I4F
212240 -
212242 -  ..
212243 - If for example, we launch sds.bat, we need an "exit" command at the
212244 - end of.....
212245 -
212246 -                  c: sd 01 sds.bat
212247 -
212249 -  ..
212250 - We can run this minimized to avoid the clutter of another window, if
212251 - that is appropriate to the op.
212252 -
212253 -      Help for start and cmd provide additional useful guidance.
212255 -  ..
212256 - This new research supports Gary's recent initiative to call external
212257 - operations to perform SDS functions, per above, ref SDS 0 GO7G, using
212258 - the new call in the Tools menu for "External Test Macro," developed on
212259 - 021228. ref SDS 28 0001
212261 -  ..
212262 - One initial benefit of getting this to work is that mem returns 634K
212263 - instead of only 544, or 90K more memory, and to the extent we can run
212264 - ops in a separate Window, that avoids memory fragmentation, which is a
212265 - major cause of failure in SDS.
212267 -  ..
212268 - In short run this may help doing operations in the subject index,
212269 - particularly those that are now large files, over 100K.
212271 -  ..
212272 - It can also help with tasks like the SI and reports.  We can run a
212273 - report or open an SI and observe content in a separate window in
212274 - relation to the SDS record open in the original window.  We need a
212275 - little extra code to transfer data between these environments.
212276 -
212277 -     [On 030109 worked on applying "start" feature. ref SDS 31 0001
212278 -
212279 -
212280 -
212281 -
212282 -
212283 -
212284 -
212285 -
212286 -
212287 -
212288 -
212289 -
212290 -
Distribution. . . . See "CONTACTS"