home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / ddlnch10.zip / DDLNCH.FRM (.txt) < prev    next >
Visual Basic Form  |  1993-01-02  |  12KB  |  281 lines

  1. ddlnch
  2. Drag Drop Launch
  3. 3333333333?
  4. p33333333330
  5. p2""""""""""#
  6. p33333333
  7. 000000
  8. Form1
  9. AboutButton
  10. About
  11.     CMDialog1
  12. CommonDialog
  13. ExitButton
  14. DoneButton
  15. List1
  16. MS Sans Serif
  17. Label1
  18. The INI file did not contain the section you specified on the command line.  The following things are in the INI file.  Please select one of them, or EXIT to quit.
  19.     Form_Loade
  20. TotFiles
  21. PM_NOREMOVE4
  22. PM_NOYIELD
  23. wRemoveMsg
  24. DragDropFormL
  25. Handle
  26. FileNum|
  27. DragAcceptFilesL
  28. PeekMessage
  29. NewMessage+
  30. DragQueryFile
  31. wparam
  32. NameOfFileW
  33. Counter[
  34. List1
  35. label2
  36. CaptionA
  37. DragFinish
  38. DDLNCHV
  39.     DDWhatAmI
  40. DDNameN
  41. DDCmdString
  42. DDType
  43. Label1_Click
  44.     FirstTimeb
  45. WindowState
  46. MINMIZEDj
  47. NORMAL
  48. List1_Clicku
  49. Listinde
  50.     ListIndex9
  51. DoneButton_Clickn
  52. ExitButton_Click~
  53.     MINIMIZED
  54. Load|
  55. FileList
  56. TempString
  57.     StringLenf
  58. ProgName
  59. PartialCmds(
  60. FilePointer
  61. DirPointer
  62. DirMaskk
  63. FileSelect
  64. CMDialog
  65. Action
  66. DLG_FILE_OPEN
  67. DefaultExt2
  68. DirExt
  69. DialogTitle;
  70. Filter
  71. Flags
  72. OFN_OVERWRITEPROMPT
  73. OFN_HIDEREADONLY
  74. OFN_NOREADONLYRETURN
  75.     MYFLAGSET|
  76. InitDir|
  77. TempString1
  78. NumItems^
  79. GetPrivateProfileInt
  80. INIFILE
  81. MB_OKd
  82. GetPrivateProfileString
  83. StartupCmd
  84. FileMarker/
  85.     DIRMARKER=
  86. DIRMARKER1^
  87. DIRMARKER2
  88. DIRPOINTER1
  89. LENDIRPOINTER1
  90.     DIROINTER
  91. LENDIRPOINTER
  92. LENDIRMARKER
  93. LENFILEMARKER
  94. LENFILEMAKER
  95. DirMaskStart 
  96. Dirmaskend
  97. FileMarkerStartQ
  98. FileMarkerStop
  99. FileMarkerEnd
  100. DirMarkerStart1
  101. DirmaarkerEndw
  102. DirMarkerEnd
  103. LDDCmdString
  104.     CMDialog1
  105. POINTAPIZ
  106. message3    
  107. lParam8
  108. time}
  109. Accept$
  110. lpMsgp
  111. wMsgFilterMinm
  112. wMsgFilterMaxx
  113. hdrop
  114. indexFilenum
  115. lpFileName
  116. buffsize
  117. lpApplicationName
  118.     lpKeyNameM
  119.     lpDefault
  120. lpReturnedString
  121. nSize
  122. nDefault
  123.     MAXIMIZED
  124. DLG_FILE_SAVE
  125.     DLG_COLOR
  126. DLG_FONT
  127.     DLG_PRINT
  128. DLG_HELP
  129. OFN_READONLY
  130. OFN_NOCHANGEDIR
  131. OFN_SHOWHELPR
  132. OFN_NOVALIDATE
  133. OFN_ALLOWMULTISELECT
  134. OFN_EXTENTIONDIFFERENT)
  135. OFN_PATHMUSTEXIST>
  136. OFN_FILEMUSTEXIST
  137. OFN_CREATEPROMPT3
  138. OFN_SHAREAWARE
  139. Pring
  140. INFILEc
  141.     mispelled!
  142. DirmarkStart
  143. Dummy
  144. Visible    
  145. DMEndS
  146. LDirMask
  147. LENDIRMARKER1
  148. LENDIRMARKER2
  149. Filename
  150. List1_DblClick
  151. LoopON
  152. DirChgFlagA
  153. ChgDir
  154. ChgDirFlagI
  155. Path=    
  156. NewDir(    
  157. StripandFind
  158.     StinngLen-    
  159. PathName
  160. Last_x
  161. Length
  162. TempStringg
  163. ShortFileName
  164. FilePath
  165. WinExec
  166. ErrorMessage
  167.     ErrorMess
  168. AboutButton_Click
  169. VERSION
  170. IniPathFile
  171. IniFilePath
  172. Spacer
  173. endirN
  174. AboutButton_Click
  175. Version 
  176.  Written by Robert Castle CIS 70337,605
  177. Free Use to All
  178. Drag Drop Launcher
  179. DDWhatAmI
  180. get from the ini file, what I am supposed to do.
  181. try current dir
  182. Number
  183. let windows try the Windows Dirn
  184. Number
  185. INI file is invalid or missing
  186. DDLnch
  187. parse the command string
  188. nothing on command string, bring up form
  189. make up list box, then exit, form load will take itl
  190. this so the form load procedure will know what to do
  191. CmdString
  192. nothing found, complain and exit
  193. Command Line not Found under 
  194. ChgDir
  195. parse the command string.y
  196. I will parse, and set two pointers up as well as an array of strings.-
  197. the FilePointer will either be 2,3, or 4, depending on where the file-
  198. names should be inserted in the command string.d
  199. the DirPointer will likewise be either 2,3,4 depending on where the destinationm
  200. file is to be inserted.e
  201. The array of PartialCmds will be filled in with data from the command string
  202. FIRST Char AFTER <F>
  203. note that BOTH dirmarkerEnds may be larger than the length of the string
  204. FMStart= 
  205.  FMEnd= 
  206.  DMStart=
  207. first AFTER <D
  208.  DMEnd = 
  209. point to start of dirmaskn
  210. marker not found
  211. invalidt
  212. null length, null dirmask 
  213. something else invalid
  214. first is always the same
  215. only a file marker
  216. only a destination, at most. put files at endd
  217. both file and dir are presentr
  218. file entry is first 
  219. dir entry is first
  220. Part 
  221. FPointer=
  222.  DirPointer=
  223. DoneButton_Click
  224. ExitButton_Click
  225. FileSelect
  226. put up commondialog and get file nameg
  227. x = InStr(1, DirMask, ".")
  228. If x <> 0 Then
  229.  'strip all but last
  230.  TempString = Right$(DirMask, Len(DirMask) - x)
  231.  TempString = DirMaskD
  232. End If
  233. If Len(TempString) > 0 And Len(TempString) < 4 Then
  234. CMDialog1.DefaultExt = TempString 
  235. End If
  236. equal to &H8804&
  237. Form_Load
  238. set up error message strings
  239. Out of Memory
  240. File not found
  241. Path not found
  242. Attempt to dynamically link to a task
  243. Library requires separate data segments for each task
  244. Insufficient Memory
  245. Incorrect Windows version
  246. Invalid EXE file
  247. O/S 2 App
  248. DOS 4.0 App
  249. Unknown .EXE Type
  250. .EXE created for earlier version of Windows
  251. Attempt to load 2nd instance (mult data segments)
  252. Attempt to load 2nd instance (nonshareable DLLs)
  253. Protected mode app in real mode
  254. Attempt to load compressed EXE
  255. DLL required for this app is invalid
  256. Requires 32 bit extensions
  257. get what I'm supposed to do as a result of a DD eventM
  258. parameters for PeekMessage callf
  259. identify form as able to accept d/d messages
  260. Dummy = DoEvents()
  261. determine if a d/d message is waitingo
  262. if a dd message is waiting
  263. calling DragQueryFile with a -1 value for FileNum returns # of files dropped
  264. Clear from last call
  265.  for each file dropped
  266. calling with a value greater than -1 returns name of corresponding fileo
  267. add NameOfFile to List
  268. last file or only onel
  269. get next file'
  270. now build command string and sende
  271. if command line needs a destination file prompt"
  272. user didn't select anything 
  273. Command Line TOO Long. Can't do This.
  274. DDLnch Message
  275. Error Occurred - 
  276. DDLnch Error
  277. List1_DblClick
  278. StripandFind
  279. strip the file name to base name and put the path in "
  280. the PathName variableo
  281.