tag:blogger.com,1999:blog-318556142024-02-19T08:54:21.040-08:00Srego BlogInformation about Srego, Inc products.Unknownnoreply@blogger.comBlogger37125tag:blogger.com,1999:blog-31855614.post-30082118988235372622008-12-31T13:54:00.000-08:002008-12-31T13:55:22.929-08:00Srego ceCmd beta program extended until MarchThe beta program for the <a href="http://srego.com/sregocecmd.htm">Srego ceCmd</a> application has been extended until March.<br /><br />The<strong> Srego ceCmd</strong> application is a GUI application run from the desktop, but it controls a connected Pocket PC, Window Mobile, or Windows Smartphone device. Similar in spirit to both the <a href="http://www.srego.com/sregocetp.htm">Srego CE ToolPack command-line </a>utilities and the <a href="http://www.srego.com/sregocetpx.htm">Srego CE ToolPack ActiveX control</a>, the <strong>Srego ceCmd</strong> provides the user with a tool to copy files to and from the connected device, create and delete directories, delete files, start applications, and check device information. A built-in command history is supported as well as the use of Command Files which can be created and run to simplify repeated tasks. The current directory concept is also used by the <strong>Srego ceCmd</strong> allowing users to set the current directory on the device and simply use this relative path when manipulating files on the device. Files can also be dragged-and-dropped from the desktop into this current directory on the device.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-57221582318083286322008-07-14T07:06:00.000-07:002008-07-14T07:19:48.781-07:00Srego ceCmd Beta extended until the end of the YearThe beta program for the <a href="http://srego.com/sregocecmd.htm">Srego ceCmd</a> application has been extended until the end of the year.<br /><br />The<strong> Srego ceCmd</strong> application is a GUI application run from the desktop, but it controls a connected Pocket PC, Window Mobile, or Windows Smartphone device. Similar in spirit to both the <a href="http://www.srego.com/sregocetp.htm">Srego CE ToolPack command-line </a>utilities and the <a href="http://www.srego.com/sregocetpx.htm">Srego CE ToolPack ActiveX control</a>, the <strong>Srego ceCmd</strong> provides the user with a tool to copy files to and from the connected device, create and delete directories, delete files, start applications, and check device information. A built-in command history is supported as well as the use of Command Files which can be created and run to simplify repeated tasks. The current directory concept is also used by the <strong>Srego ceCmd</strong> allowing users to set the current directory on the device and simply use this relative path when manipulating files on the device. Files can also be dragged-and-dropped from the desktop into this current directory on the device.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-81342441725889408112008-05-20T08:13:00.000-07:002008-05-20T08:15:09.311-07:00Srego CE ToolPack version 1.0.0.61 is Available<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6P8waFR6TGczm_5oUXsd9GOfZ1GYNjPH6GqEIAmjs0rOX8o8_IspWnCibtq1dOUkWOpXOdho901gZwvWUT9n1nmsG-_oTeZcmtnPd5T7hum4DcPfCJ5Yk8zHDR21MWhyvQH-rsQ/s1600-h/srego_logo_1.jpg"><img id="BLOGGER_PHOTO_ID_5052172731030043106" style="CURSOR: hand" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6P8waFR6TGczm_5oUXsd9GOfZ1GYNjPH6GqEIAmjs0rOX8o8_IspWnCibtq1dOUkWOpXOdho901gZwvWUT9n1nmsG-_oTeZcmtnPd5T7hum4DcPfCJ5Yk8zHDR21MWhyvQH-rsQ/s200/srego_logo_1.jpg" border="0" /></a><br /><div></div><br /><div><a href="http://www.srego.com/sregocetpx.htm">Srego CE ToolPack ActiveX</a> version 1.0.0.61 is Available.<br /><br />Visit the Srego <a href="http://www.srego.com/support.htm">Support</a> page to download.<br /><br /><span style="font-family:courier new;">-----------</span></div><div><span style="font-family:courier new;">01.00.00.61 - 05/16/08</span></div><div><span style="font-family:courier new;">-----------</span></div><span style="font-family:courier new;"><div><br />- NEW - New Method:</div><div><br /> long TestFile( BSTR filename )</div><div><br />- FIX - Recompiled to better run with Vista.</span></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-29289202019989562222008-04-06T08:10:00.000-07:002008-04-06T08:12:35.500-07:00Srego ceCmd version 1.0.0.15 (beta) is AvailableThe beta of the <a href="http://srego.com/sregocecmd.htm">Srego ceCmd</a> application has been updated. The beta expiration has been extended to July 1. The Srego ceCmd utility will be integrated into the next version of the <a href="http://www.srego.com/sregocetp.htm">Srego CE ToolPack Command-Line</a> tools.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-9986680913671307642008-01-16T15:30:00.000-08:002008-01-16T15:36:36.099-08:00Srego ceCmd version 1.0.0.14 (beta) is AvailableThe beta of the <a href="http://srego.com/sregocecmd.htm">Srego ceCmd</a> application has been updated.<br /><br />This version will be the last beta version of the Srego ceCmd application. All future versions will be part of the <a href="http://www.srego.com/sregocetp.htm">Srego CE ToolPack Command-Line</a> tools.<br /><br /><span style="font-family:courier new;">-----------</span><br /><span style="font-family:courier new;">01.00.00.14 - 1/2/08</span><br /><span style="font-family:courier new;">-----------<br /></span><span style="font-family:courier new;"><br />- FIX - Change made to prevent application from closing when</span><br /><span style="font-family:Courier New;"> used with Windows Vista with a device connected at</span><br /><span style="font-family:Courier New;"> startup.</span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-28694470748135823652008-01-02T08:37:00.000-08:002008-01-02T08:41:19.057-08:00Srego ceCmd version 1.0.0.12 (beta) is AvailableThe beta of the <a href="http://srego.com/sregocecmd.htm">Srego ceCmd</a> application has been updated.<br /><br />The beta period has also been extended to the end of the January since some new functionality has been added and problem with Vista have been reported.<br /><br />The RUN command has been added to allow command files to be created and executed. The command file is just a list of commands that can be used with the ceCmd tool. The file can be on the device or on the desktop.<br /><br />The REM command has been added to allow comments to be placed in a command file.<br /><br /><span style="font-family:courier new;">-----------</span><br /><span style="font-family:courier new;">01.00.00.12 - 1/2/08</span><br /><span style="font-family:courier new;">-----------<br />- NEW - Extended Expiration Timeout.</span><br /><span style="font-family:courier new;"><br />- FIX - The DEL command gave a correct success message when 1 file was deleted.<br /><br />- FIX - The COPY command would not copy a file from device to an explicit path on the desktop.<br /><br />- NEW - The RUN command has been added to run a command file from either the desktop or the device.<br /></span><br /></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-5657585269888548892007-09-11T16:20:00.000-07:002007-09-11T16:21:53.651-07:00Srego CE ToolPack Command-Line Version 3.0.0.7 is AvailableThe <a href="http://www.srego.com/sregocetp.htm">Srego CE ToolPack Command-Line</a> tool version 3.0.0.7 is Available.<br /><br />Visit the Srego <a href="http://www.srego.com/support.htm">Support</a> page to download.<br /><br /><span style="font-family:courier new;">-----------</span><br /><span style="font-family:courier new;">03.00.00.07 - 09/11/07</span><br /><span style="font-family:courier new;">-----------<br />- FIX - ceCD - putting quotes around a path caused the path to not be found. Quotes are not ignored.</span><br /><span style="font-family:courier new;"><br />- FIX - ceCD - using the parent directory token (..) or the current directory token (.) in a new current directory would work, but it did not resolve the token out of the path.<br /><br />- NEW - ceReg - Support for REG_MULTI_SZ types has been added.</span><br /><br /><br /></span><p><span style="font-family:Courier New;"></span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-15853653675701406592007-08-19T15:05:00.000-07:002007-08-19T15:14:32.829-07:00Using GetSchemaTable to get Info about Columns in VB.NETHere is a simple example in VB.NET that uses <strong>GetSchemaTable</strong> to retrieve information about the columns returned from a SQL Select statement. If you say "Select * from table", this method is useful for learning what information you will have returned. For a C# example and more information on the topic, look <a href="http://support.microsoft.com/kb/310107">here</a>.<pre><br /><span style="font-size:85%;">Dim myConn As New OleDbConnection(ConnectionString)<br /><br />Dim sql As String = "Select * from Table_ABC"<br /><br />Dim myCommand As New OleDbCommand(sql, myConn)<br /><br />myConn.Open()<br /><br />Dim objDR As OleDbDataReader<br /><br />objDR = myCommand.ExecuteReader(CommandBehavior.CloseConnection)<br /><br /><br />' Retrieve column schema into a DataTable.<br />Dim schemaTable As DataTable<br />schemaTable = objDR.GetSchemaTable()<br /><br />' For each field in the table...<br />For Each myField As DataRow In schemaTable.Rows<br /><br /> ' For each property of the field...<br /> For Each myProperty As DataColumn In schemaTable.Columns<br /><br /> 'Display the field name and value.<br /> Debug.WriteLine(myProperty.ColumnName + _<br /> " = " + myField(myProperty).ToString())<br /><br /> Next<br /><br />Debug.WriteLine("")<br /><br />Next<br /></span></pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-58208867818873238532007-08-15T08:35:00.000-07:002007-08-15T08:44:29.637-07:00ceReg now supports REG_MULTI_SZWith version 3.0.0.7 of the <a href="http://www.srego.com/sregocetp.htm"><span class="blsp-spelling-error" id="SPELLING_ERROR_0">Srego</span> CE <span class="blsp-spelling-error" id="SPELLING_ERROR_1">Toolpack</span> Command-Line utilities</a>, the <strong><span class="blsp-spelling-error" id="SPELLING_ERROR_2">ceReg</span></strong> utility supports reading and writing of the Multiple String type (REG_MULTI_<span class="blsp-spelling-error" id="SPELLING_ERROR_3">SZ</span>) in the device's registry. The REG_MULTI_<span class="blsp-spelling-error" id="SPELLING_ERROR_4">SZ</span> type allows a list of delimited strings to be stored in one value. <span class="blsp-spelling-corrected" id="SPELLING_ERROR_5">Mimicking</span> the Reg command on the desktop, multiple strings are specified with a "<span style="font-family:courier new;">\0</span>" delimiter:<br /><br /><span style="font-family:courier new;">phone\0fax\0mail</span><br /><br />In the Remote Registry Editor, the Multi String value looks like:<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhD2zneXNhRqPaMmDbFjf17m7cn9x3usklnn7f-hdbcrY65WOIM47wTMDNuahLKqALBQwzxtkY7OXcvvacYldjPPYynws9oPXSelNrai4E-DCXdPUgRM-zjrT8WEn5stZi7kd2aGw/s1600-h/reg.jpg"><img id="BLOGGER_PHOTO_ID_5098952925038514386" style="CURSOR: hand" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhD2zneXNhRqPaMmDbFjf17m7cn9x3usklnn7f-hdbcrY65WOIM47wTMDNuahLKqALBQwzxtkY7OXcvvacYldjPPYynws9oPXSelNrai4E-DCXdPUgRM-zjrT8WEn5stZi7kd2aGw/s400/reg.jpg" border="0" /></a><br /><br /><br />Reading a Multi String value is also similar to the desktop's Reg command:<br /><br /><span style="font-family:courier new;font-size:85%;">ceReg /r /1 /sub software\srego\test /name testValue<br /><br />ceReg - version 03.00.00.07<br />(c) Srego, Inc - 2007<br /><br />[HKEY_CURRENT_USER\software\srego\test] </span><br /><span style="font-family:courier new;font-size:85%;">"testValue"="fax\0mail\0phone\00<br /></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-61807696255687199302007-07-09T08:07:00.000-07:002007-07-09T08:08:58.238-07:00Srego CE ToolPack Command-Line Version 3.0.0.6 is AvailableThe <a href="http://www.srego.com/sregocetp.htm">Srego CE ToolPack Command-Line</a> tool version 3.0.0.6 is Available.<br /><br />Visit the Srego <a href="http://www.srego.com/support.htm">Support</a> page to download.<br /><span style="font-family:courier new;"><br />-----------</span><br /><span style="font-family:courier new;">03.00.00.06 - 07/08/07</span><br /><span style="font-family:courier new;">-----------<br />- NEW - ceTouch - The /rf option was added to allow a timestamp to be retrieved from an existing file.</span><br /><span style="font-family:courier new;"><br />- NEW - ceTouch - Additional error information is provided if a file's timestamp cannot be updated.<br /><br />- CHG - ceDir - The default timestamp is now the last written time instead of the created timestamp.<br /><br />- FIX - cePush, cePull - Better error handling when invalid options are given.<br /><br />- FIX - cePush, cePull - Now support the /F flag to copy a file only if it already exists on the destination.</span></span><br /></span><p><span style="font-family:Courier New;"></span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-61704479388413122472007-07-01T21:05:00.000-07:002007-07-01T21:07:44.424-07:00Srego ceCmd version 1.0.0.11 is Available (Beta Extended)The beta of the <a href="http://srego.com/sregocecmd.htm">Srego ceCmd</a> application has been updated.<br /><br />The beta period has also been extended to the end of the year.<br /><br /><span style="font-family:courier new;">-----------<br />01.00.00.11 - 07/01/07<br />-----------<br /><br />- NEW - Extended Expiration Timeout.<br /><br />-----------<br />01.00.00.10 - 06/20/07<br />-----------<br /><br />- FIX - the CD command was not properly handling paths that included ..<br /><br />- FIX - the DIR command did not handle a path if it ended in .. </span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-72140655208159769942007-06-21T10:23:00.000-07:002007-06-21T10:32:02.309-07:00Installing .CAB files on a Device with the Command-Line Tools or the ActiveX control<span style="color:#000000;">With the <a href="http://srego.com/sregocetp.htm">Srego CE Toolpack Command lines </a>tools, there are two way to install a cab file on the device:</span><br /><span style="font-size:85%;"></span><br />1) The <strong>cePush</strong> command has a /deploy flag. If this flag is specified and you are pushing a .cab file to the device, it will automatically be installed after it is copied to the device.<br /><span style="font-family:courier new;"><span style="color:#3333ff;"></span></span><br /><span style="font-family:Courier New;font-size:85%;color:#3333ff;">cePush sample.cab /deploy</span><br /><span style="font-family:Courier New;color:#3333ff;"></span><br /><span style="color:#000000;">2) the <strong>ceStart</strong> utility can also be used. If the .cab file is already on the device, you can specify something like this to activate the .cab file on the device:</span><br /><span style="font-family:Courier New;color:#3333ff;"></span><br /><span style="font-family:courier new;font-size:85%;color:#3333ff;">ceStart \windows\wceload.exe "\my documents\sample.cab"</span><br /><span style="font-family:Courier New;font-size:85%;color:#3333ff;"></span><br /><span style="font-family:Courier New;font-size:85%;color:#3333ff;"></span><br /><span style="color:#000000;">If you are using the <a href="http://srego.com/sregocetpx.htm">Srego CE Toolpack ActiveX control</a>, you will use the <strong>StartApplicationEx</strong> method as shown below with VB6 sample code:</span><br /><span style="font-family:Courier New;font-size:85%;color:#3333ff;"></span><br /><span style="font-family:courier new;"><span style="font-size:85%;color:#3333ff;"></span></span><br /><span style="font-family:courier new;"><span style="font-size:85%;color:#3333ff;">Dim stat As Boolean<br /> <br />Dim parameters As String<br /> <br />parameters = Chr(34) + "\my documents\PGTViewer_WinMobile_7004.CAB" + Chr(34)<br /> <br />stat = SregoCETPx1.StartApplicationEx("\windows\wceload.exe", parameters)<br /></span><br /></span>There are two keys to making the StartApplicationEx correctly activate the .cab file. The application parameter must be “\windows\wceload.exe” and the parameters must be the path to the .cab file. If the path has spaces in it, you must put quotes around the path as shown in this example.Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-31855614.post-64899504159379410152007-06-10T11:30:00.000-07:002007-06-10T11:34:15.120-07:00ceAttrib added to the Command-Line Srego ToolpackWith version 3.0.0.5 of the <a href="http://srego.com/sregocetp.htm">Srego CE Toolpack Command-Line utilities</a>, a new utility called ceAttrib has been added.<br /><br /><strong><u>ceAttrib </u></strong><br /><br />The <strong>ceAttrib</strong> utility is run on a desktop computer to set file attributes on the connected device.<br /><br />The <strong>ceAttrib</strong> utility will accept wildcards in the path name (* and ?) to get or set file attributes on more than one file.<br /><br />There are 4 attributes the <strong>ceAttrib</strong> utility can be used to change: ReadOnly, Archive, Hidden, and System.<br /><br />The <strong>ceAttrib</strong> utility can also be used to see what attributes are set on a file. It will show ReadOnly, Archive, Hidden, System, and Directory.<br /><br />The <strong>ceAttrib</strong> utility will use the current directory (set by ceCD) and does require quotes around paths with spaces.<br /><br />*** Note: Some attributes cannot be changed on certain platforms. For example, the System attribute cannot be changed on a Windows Mobile 5.0 or Windows Mobile 6 device.<br /><br /><br /><span style="font-family:courier new;">Usage:<br /><br />ceAttrib - version 03.00.00.05<br />(c) Srego, Inc - 2007<br /><br />Usage: ceAttrib [path] [/?] [+R -R] [+A -A] [+S -S] [+H -H]<br /><br />[path] Specifies file(s) to touch. Wildcards are permitted.<br /><br />[/?] Display usage.<br /><br />[+R] Set Read-Only Attribute<br />[-R] Clear Read-Only Attribute<br /><br />[+A] Set Archive Attribute<br />[-A] Clear Archive Attribute<br /><br />[+S] Set System Attribute<br />[-S] Clear System Attribute<br /><br />[+H] Set Hidden Attribute<br />[-H] Clear Hidden Attribute<br /></span><br /><strong>Examples: </strong><br /><br />To show the file attribute for a single file:<br /><br /><span style="font-family:courier new;"><strong>ceAttrib gps.log </strong><br /><br />ceAttrib - version 03.00.00.05<br />(c) Srego, Inc - 2007<br /><br />Current Device Directory: \My Documents<br /><br />A \My Documents\gps.log<br /><br />Files: 1<br /></span><br />To show more than one file’s attributes, you can use wildcards:<br /><br /><span style="font-family:courier new;"><strong>ceAttrib *.* </strong><br /><br />ceAttrib - version 03.00.00.05<br />(c) Srego, Inc - 2007<br /><br />Current Device Directory: \My Documents<br /><br />A \My Documents\gps.log<br />RA \My Documents\PGTViewer_WinMobile_7004.CAB<br />A \My Documents\MadisonCty.gtx<br /><br />Files: 3<br /><br /></span><br />To add the Read Only attribute to a file:<br /><br /><span style="font-family:courier new;"><strong>ceAttrib gps.log +R </strong><br /><br />ceAttrib - version 03.00.00.05<br />(c) Srego, Inc - 2007<br /><br />Current Device Directory: \My Documents<br /><br />RA \My Documents\gps.log<br /><br />Files Updated: 1<br /></span><br /><br /><br />To remove the Read Only attribute to a file:<br /><br /><span style="font-family:courier new;"><strong>ceAttrib gps.log -R </strong><br /><br />ceAttrib - version 03.00.00.05<br />(c) Srego, Inc - 2007<br /><br />Current Device Directory: \My Documents<br /><br />A \My Documents\gps.log<br /><br />Files Updated: 1</span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-50697577512132620242007-06-10T11:01:00.000-07:002007-06-10T11:02:54.805-07:00Srego CE ToolPack Command-Line Version 3.0.0.5 is AvailableThe <a href="http://www.srego.com/sregocetp.htm">Srego CE ToolPack Command-Line</a> tool version 3.0.0.5 is Available.<br /><br />Visit the Srego <a href="http://www.srego.com/support.htm">Support</a> page to download.<br /><br /><span style="font-family:courier new;">-----------</span><br /><span style="font-family:courier new;">03.00.00.05 - 06/10/07</span><br /><span style="font-family:courier new;">-----------</span><br /><span style="font-family:courier new;"><br />- NEW - ceTouch - The /t options allows a specific time to be specified.</span><br /><span style="font-family:courier new;"><br />- FIX - ceStart - Was not processing parameters correctly.<br /><br />- NEW - ceAttrib - New utility added.<br /><br />-----------<br />03.00.00.04 - 05/16/07<br />-----------<br /><br />- FIX - cePush, cePull - both has a problem with the /D flag because of the 2 second granularity of the device timestamp. The utilities were changed to allow a 1 second window around the timestamps being compared.<br /><br />- FIX - ceTouch - was saying that it could not update any file.</span><br /></span><p><span style="font-family:Courier New;"></span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-44708155776450121952007-06-09T15:14:00.000-07:002007-06-09T15:16:02.177-07:00Srego ceCmd version 1.0.0.9 is AvailableThe beta of the <a href="http://srego.com/sregocecmd.htm">Srego ceCmd</a> application has been updated.<br /><br /><span style="font-family:courier new;">-----------</span><br /><span style="font-family:courier new;">01.00.00.09 - 06/09/07</span><br /><span style="font-family:courier new;">-----------<br />- NEW - Start command added.<br />- FIX - Fixes to the CD command.</span><br /><br /><span style="font-family:courier new;">-----------</span><br /><span style="font-family:courier new;">01.00.00.08 </span><br /><span style="font-family:courier new;">------------<br />- FIX - Copying files from the root on the device would give an error that the source could not be found.<br />- FIX - The CD command did not work correctly in all cases.<br /> </span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-24712193345226664832007-05-17T20:47:00.000-07:002007-05-17T20:49:01.106-07:00Srego CE ToolPack Command-Line Version 3.0.0.4 is AvailableThe <a href="http://www.srego.com/sregocetp.htm">Srego CE ToolPack Command-Line</a> tool version 3.0.0.4 is Available.<br /><br />Visit the Srego <a href="http://www.srego.com/support.htm">Support</a> page to download.<br /><br /><span style="font-family:courier new;">-----------</span><br /><span style="font-family:courier new;">03.00.00.04 - 05/16/07</span><br /><span style="font-family:courier new;">-----------<br /></span><br /><span style="font-family:courier new;">- FIX - cePush, cePull - both has a problem with the /D flag because of the 2 second granularity of the device timestamp. The utilities were changed to allow a 1 second window around the timestamps being compared.</span><br /><span style="font-family:courier new;"><br />- FIX - ceTouch - was saying that it could not update any file.</span><span style="font-family:courier new;"><br /></span><br /><br /><p><span style="font-family:Courier New;"></span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-67170871004825875672007-04-13T19:10:00.000-07:002007-04-13T19:17:21.202-07:00Changes in ActiveSync 4.5 Break CopyDB and ceDBCopy.exeMicrosoft <a href="http://www.microsoft.com/windowsmobile/activesync/activesync45.mspx">states</a> in its description of ActiveSync 4.5:<br /><ul><li><em>Conversion of database files for use on a mobile device is not supported by ActiveSync 4.5. On previous versions, this feature was limited to devices running Windows Mobile software for Pocket PC 2003 and earlier</em>.</li></ul>This change breaks the <a href="http://srego.blogspot.com/2006/08/undocumented-copydb-method.html"><strong>CopyDB</strong> method</a> in the <a href="http://srego.com/sregocetpx.htm">Srego CE ToolPack ActiveX</a> control and the <strong>ceDBCopy.exe</strong> utility in the <a href="http://srego.com/sregocetp.htm">Srego CE ToolPack Command-Line Tools</a>.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-51230248855649962732007-04-11T07:08:00.000-07:002007-04-11T07:10:53.608-07:00Srego CE ToolPack ActiveX version 1.0.0.60 is Available<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6P8waFR6TGczm_5oUXsd9GOfZ1GYNjPH6GqEIAmjs0rOX8o8_IspWnCibtq1dOUkWOpXOdho901gZwvWUT9n1nmsG-_oTeZcmtnPd5T7hum4DcPfCJ5Yk8zHDR21MWhyvQH-rsQ/s1600-h/srego_logo_1.jpg"><img id="BLOGGER_PHOTO_ID_5052172731030043106" style="CURSOR: hand" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6P8waFR6TGczm_5oUXsd9GOfZ1GYNjPH6GqEIAmjs0rOX8o8_IspWnCibtq1dOUkWOpXOdho901gZwvWUT9n1nmsG-_oTeZcmtnPd5T7hum4DcPfCJ5Yk8zHDR21MWhyvQH-rsQ/s200/srego_logo_1.jpg" border="0" /></a><br /><div></div><br /><div><a href="http://www.srego.com/sregocetpx.htm">Srego CE ToolPack ActiveX</a> version 1.0.0.60 is Available.<br /><br />Visit the Srego <a href="http://www.srego.com/support.htm">Support</a> page to download.<br /><br /><span style="font-family:courier new;">-----------</span></div><div><span style="font-family:courier new;">01.00.00.60 - 04/11/07 </span></div><div><span style="font-family:courier new;">-----------</span></div><span style="font-family:courier new;"><div><br />- NEW - To better support non VB 6 platforms, two methods were added to create and maintain a ByteArray buffer (ByteBufferClear and ByteBufferAddValue). A new version of the RegSetBinaryValue was added called RegSetBinaryValueFromByteBuffer which does not require the passing of the byte array and simplifies its use for other development platforms.</div><div> </div><div>- NEW - New Methods:</div><ul><li>boolean ByteBufferClear() </li><br /><li>boolean ByteBufferAddValue(long value)</li><br /><li>boolean RegSetBinaryValueFromByteBuffer(long key, BSTR subKeyName, BSTR valueName);</span></li></ul>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-44932420331574182032007-03-30T14:48:00.000-07:002007-03-30T15:05:16.535-07:00The Srego ceCmd utility (CE Command Prompt) is Available for Testing<p align="center"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsqbqMfGqdqfG5YecZZHZerCLhM0eCydzzLTPBBWYewnmlTctoiTrUPLTyV8oUETh30Vq6RpTvawsK67cI91gJvNinEuiCPw7zj01DcOI8OAs4RciJdeFNwraRQCxmBO7hF_JPqA/s1600-h/cecmd.jpg"><img id="BLOGGER_PHOTO_ID_5047838387601258978" style="CURSOR: hand" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsqbqMfGqdqfG5YecZZHZerCLhM0eCydzzLTPBBWYewnmlTctoiTrUPLTyV8oUETh30Vq6RpTvawsK67cI91gJvNinEuiCPw7zj01DcOI8OAs4RciJdeFNwraRQCxmBO7hF_JPqA/s320/cecmd.jpg" border="0" /></a></p><br /><br /><br />The <strong>Srego ceCmd</strong> is a Command-Prompt Window similar to the Windows Command Prompt. It is installed and runs on the desktop, but it manipulates a connected Windows Mobile Device. The ceCmd uses RAPI to communicate with the connected device and no software needs to be installed on the device itself. The utility supports devices running Pocket PC, Windows Mobile, Smartphone, and CE.NET. On the <a href="http://www.srego.com/support.html">Srego support web page</a>, you can download a trail version of the software or read the product documentation<br /><br />The <strong>Srego ceCmd</strong> application is still in beta and is not yet complete, but it does contain a significant amount of functionality. The idea behind <strong>ceCmd</strong> is to provide another style of input for a connected Windows CE device. The ceCmd is not exactly like a Windows Command Prompt because there are several things about the Windows Command Prompt that can be improved upon (especially when applied to a connected device). However, if you are familiar with using a Windows Command Prompt, the ceCmd should feel familar. The basic functionality of ceCmd is described below:<br /><br /><p><strong>File Info and Manipulation Commands </strong></p><strong><ul><li></strong><strong>DIR</strong> - Directory Information </li><li><strong>COPY</strong> – Copy files on the device, from the device to the desktop, from the desktop to the device </li><li><strong>DEL</strong>, <strong>ERASE</strong> – Delete files on the device </li><li><strong>MKDIR</strong>, <strong>MD</strong> - Create Directories on the device </li><li><strong>RMDIR</strong>, <strong>RD</strong> - Remove Directories on the device </li><li><strong>CD</strong> , <strong>CHDIR</strong> – Change the current directory on the device </li></ul><p><strong>Command History </strong></p><ul><li>Use the Up/Down Arrow Keys to traverse the command history<br />Command History Dialog to view and manipulate command history (View/Command History) </li><li>Command history is persistent between sessions </li></ul><p><br /><strong>Drag and Drop File Copying </strong></p><ul><li>Drag and Drop files on the Srego ceCmd Application window and they will be copied to the device’s current directory. </li></ul><p><strong>Device Information </strong></p><ul><li><strong>INFO</strong> – Get information about the connected device:<br />Device Id, Available and Total Memory, Available and Total Storage Space, Battery Status, AC Line Status, Processor Type</li><li><strong>VER</strong> – Displays the connected device’s Windows CE Version. </li></ul><p><strong>Miscellaneous Commands and Features</strong></p><strong></strong><ul><li><strong>HELP</strong> – Get help on individual commands. </li><li><strong>EXIT</strong> – Exit the Srego ceCmd application. </li><li><strong>CLS</strong> – Clear the display buffer.</li><li>Connection Status indicator</li></ul><p></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-28145204719241218042007-03-28T14:31:00.000-07:002007-03-28T14:33:22.560-07:00<a href="http://www.srego.com/sregocetpx.htm">Srego CE ToolPack ActiveX</a> version 1.0.0.59 is Available.<br /><br />Visit the Srego <a href="http://www.srego.com/support.htm">Support</a> page to download.<br /><br /><span style="font-family:courier new;">-----------</span><br /><span style="font-family:courier new;">01.00.00.59 - 03/28/07 </span><br /><span style="font-family:courier new;">-----------</span><br /><span style="font-family:courier new;"><br />- NEW - New Methods:<br /><ul><li>boolean GetCurrentRecPropStringAlt(long pos, VARIANT* data, VARIANT* size); </li><li>BSTR SetLocale(long category, BSTR locale);</li></ul><p><br />-----------<br />01.00.00.58 -<br />-----------<br /><br />- CHG - The GetCurrentRecPropBlob will now return LPWSTR types as a byte array.~</span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-35848190909069321532007-03-28T14:30:00.000-07:002007-03-28T14:31:17.211-07:00Srego CE Toolpack Command-Line version 3.0.0.3 is AvailableThe <a href="http://www.srego.com/sregocetp.htm">Srego CE ToolPack Command-Line</a> tool version 3.0.0.3 is Available.<br /><br />Visit the Srego <a href="http://www.srego.com/support.htm">Support</a> page to download.<br /><br /><span style="font-family:courier new;">-----------</span><br /><span style="font-family:courier new;">03.00.00.03 - 03/28/07</span><br /><span style="font-family:courier new;">-----------<br /></span><br /><span style="font-family:courier new;">- NEW - the /Deploy flag was added to cePush. This flag allows files, such as a .cab file, to be immediately executed after it has been copied to the device.<br /></span><br /><p><span style="font-family:Courier New;"></span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-89266948332940292942007-01-25T12:32:00.000-08:002007-01-25T12:43:52.193-08:00Motivation behind the Srego CE ToolPack Command-Line UtilitiesThe command-line tools that make up the <a href="http://www.srego.com/sregocetp.htm">Srego CE Toolpack</a> have fairly long history. Their development was inspired by the need to easily move files back and forth between a desktop computer and a connected Windows CE Device (Pocket PC, Window Mobile). Of course, there are existing ways to accomplish this task. The File Explorer (with the help of AciveSync) provides a nice GUI interface that fully integrates the desktop files with the device’s files all through drag-and- drop manipulation. File Explorer provides very effective ad hoc file manipulation and an easy way to explore files on the device. The File Explorer’s interface is ideal for these tasks, but it is not very good at tasks that will be repeated often, tasks that may include a complex set of actions, tasks that will be scheduled, or any task that is automating some workflow. In the desktop world, we would simply write a script to perform these tasks and leave the File Explorer to what it does best. How do you do perform these tasks on a device? This problem posed an in-house question that needed to be solved for developing and testing applications written for handheld devices. The need to frequently move data files back and forth between the desktop and device resulted in <strong>cePush</strong> and <strong>cePull</strong>. In development mode, test files and result files could be shuttled between the desktop and device very easily. At a Command Prompt, the command is entered once, then DOS Key (the up and down arrow traversal of the command history or the F7 command history menu) is used to perform the file moves over and over. For more complex tasks, a .bat file can be created to perform a set of transfers. The batch file can even employ some logic and can be scheduled. The original cePush and cePull were very simple; they had no wild card support and no options. There were later enhanced to provide equivalent functionality found in the Command Prompt's Copy command.<br /><br />The in-house success with <strong>cePush</strong> and <strong>cePull</strong> commands led to the need to create even more utilities that would remove directories on the device (<strong>ceMkdir</strong>, <strong>cdRmdir</strong>), delete files on the device (<strong>ceDel</strong>), and simply see what files are on the device on the device (<strong>ceDir</strong>). Then the need for moving and copying files on the device to the device (versus from the device to the desktop) was needed (<strong>ceMove</strong>, <strong>ceCopy</strong>). <br /><br />The <strong>cePush</strong> and <strong>cePull</strong> utilities were updated to support more synchronization operations (checking time and dates to see if an up-to-date file is already present). With this functionally a new utility was added to update a files timestamp (<strong>ceTouch</strong>, similar to the UNIX touch utility). The <strong><a href="http://srego.blogspot.com/2007/01/cejump.html">ceJump</a></strong> utility was added to streamline editing files on the device. <br />With all of these utilities available, it became obvious that the one thing missing from the Command Prompt style-environment was the concept of a current directory. The <strong>ceCD</strong> utility was added to implement this concept and all of the utilities were modified to utilize a current directory concept which often reduces the lengthy paths that need to be typed (for example <span style="color:#000099;">\my documents</span> was a commonly typed path for the device and always requires quotes, setting this path to be the current simplifies the command). <br /><br />The last utility added to the toolpack was the <strong>ceReg</strong> utility which allows registry modifications from the desktop command-line. It is a simplified version of the Reg utility on the desktop, but it still allows the creation, query, and updating of registry entries on the device.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-69545427248285530462007-01-23T07:56:00.000-08:002007-01-23T08:11:43.916-08:00Working with .cdb files created from .mdb files<div>When you convert a .mdb file to a .cdb file (when you copy it to the device with ActiveSync), there are several additional tables that get created:<br /><br />MSysTables<br />MSysFields<br />MSysIndexes<br />MSysProcs<br /><br />You can use the two of these to get Metadata from the .cdb file:<br /><br />MSysTables<br />TableName<br />TableId<br />TableFlags (0 for user, 3 for system)<br /><br />MSysFields<br />TableId<br />FieldName<br />FieldId<br />Len<br />Type (2=INT16, 18=UINT16, 3=INT32, 19=UINT32, 64=FileTime, 1=String, 65=Blob, 11=BOOL, 5=DOUBLE)<br /><br /><br />Here are two sample functions to get the meta data from the tables:<br /><br /><span style="font-family:courier new;font-size:85%;color:#3333ff;">Function GetTableListFromCDB(cdbFile As String, _<br />tableId() As Long, _<br />tableName() As String, _<br />tableFlags() As Long, _<br />tableCount As Integer) As Boolean<br /><br />tableCount = 0<br /><br />' Mount a Database Volume<br />Dim filename As String<br />Dim volumeId As String<br /><br />volumeId = _</span><br /><br /><div><span style="font-family:courier new;font-size:85%;color:#3333ff;">SregoCETPx1.MountDatabaseVolume(cdbFile, OPEN_EXISTING)<br /><br />If volumeId = "" Then<br />MsgBox "Unable to mount database volume"<br />GetTableListFromCDB = False<br />Exit Function<br />End If<br /><br />' Open Database in mounted Volume<br />Dim dbHandle As Long<br />dbHandle = SregoCETPx1.OpenDatabaseByName(volumeId, _<br />"MSysTables", 0, CEDB_AUTOINCREMENT)<br /><br />If dbHandle <> 0 Then ' make sure database was opened<br /></span></div><br /><div><span style="font-family:courier new;font-size:85%;color:#3333ff;">' read each record<br />While SregoCETPx1.ReadDatabaseRecord(dbHandle) </span></div><br /><div><span style="font-family:courier new;font-size:85%;color:#3333ff;"><br />tableName(tableCount) = _</span></div><br /><div><span style="font-family:courier new;font-size:85%;color:#3333ff;">SregoCETPx1.GetCurrentRecPropValue(0)<br /><br />tableId(tableCount) = _</span></div><br /><div><span style="font-family:courier new;font-size:85%;color:#3333ff;">SregoCETPx1.GetCurrentRecPropValue(1)</span></div><span style="font-family:courier new;font-size:85%;color:#3333ff;"><br /><div><br />tableFlags(tableCount) = _</div><br /><div>SregoCETPx1.GetCurrentRecPropValue(2)<br /><br />tableCount = tableCount + 1<br /><br />Wend<br /><br />SregoCETPx1.CloseDatabase dbHandle<br /><br />End If<br /><br />SregoCETPx1.UnmountDatabaseVolume volumeId<br /><br />GetTableListFromCDB = True<br /><br />End Function<br /><br /><br />Function GetFieldListFromCDB(cdbFile As String, _</div><br /><div>tableId As Long, fieldName() As String, _</div><br /><div>fieldId() As Long, fieldLen() As Long, _</div><br /><div>fieldType() As Long, _</div><br /><div>fieldCount As Integer) As Boolean<br /><br />fieldCount = 0<br /><br />' Mount a Database Volume<br />Dim filename As String<br />Dim volumeId As String<br /><br />volumeId = _</div><br /><div>SregoCETPx1.MountDatabaseVolume(cdbFile, _</div><br /><div>OPEN_EXISTING)<br /><br />If volumeId = "" Then<br />MsgBox "Unable to mount database volume"<br />GetFieldListFromCDB = False<br />Exit Function<br />End If<br /><br />Dim recTableId As Long<br /><br />' Open Database in mounted Volume<br />Dim dbHandle As Long<br />Dim id As Long<br />dbHandle = SregoCETPx1.OpenDatabaseByName(volumeId, _<br />"MSysFields", 0, CEDB_AUTOINCREMENT)<br /><br />If dbHandle <> 0 Then ' Success<br /></div><br /><br /><div>' read each record<br />While SregoCETPx1.ReadDatabaseRecord(dbHandle)<br /><br />recTableId = SregoCETPx1.GetCurrentRecPropValue(0)<br /><br />If recTableId = tableId Then<br /></div><br /><div>fieldName(fieldCount) = _</div><br /><div>SregoCETPx1.GetCurrentRecPropValue(1)<br /><br />id = SregoCETPx1.GetCurrentRecPropValue(2)<br />fieldId(fieldCount) = ShiftRight(id, 24)<br /><br />fieldLen(fieldCount) = _</div><br /><div>SregoCETPx1.GetCurrentRecPropValue(3)<br />fieldType(fieldCount) = _</div><br /><br /><div>SregoCETPx1.GetCurrentRecPropValue(4)<br /></div><br /><div>fieldCount = fieldCount + 1<br /><br />End If<br /><br />Wend<br /><br />SregoCETPx1.CloseDatabase dbHandle<br /><br />End If<br /></div><br /><div><br />SregoCETPx1.UnmountDatabaseVolume volumeId<br /><br />GetFieldListFromCDB = True<br /><br />End Function<br /></div><br /><div><br />' Power2 from http://search.devx.com/<br />Function Power2(ByVal exponent As Long) As Long<br />Static res(0 To 31) As Long<br />Dim i As Long<br /><br />' rule out errors<br />If exponent <> 31 Then Err.Raise 5<br /><br />' initialize the array at the first call<br />If res(0) = 0 Then<br />res(0) = 1<br />For i = 1 To 30<br />res(i) = res(i - 1) * 2<br />Next<br />' this is a special case<br />res(31) = &H80000000<br />End If<br /><br />' return the result<br />Power2 = res(exponent)<br /><br />End Function<br /><br />' ShiftRight from http://search.devx.com/<br />Function ShiftRight(ByVal value As Long, ByVal times As Long) As Long<br />' we need to create a mask of 1's corresponding to the<br />' digits in VALUE that will be retained in the result<br />Dim mask As Long, signBit As Long<br /><br />' return zero if too many times<br />If times >= 32 Then Exit Function<br />' return the value if zero times<br />If times = 0 Then ShiftRight = value: Exit Function<br /><br />' evaluate the sign bit in advance<br />signBit = (value < times="31" mask =" Not" value =" (value" shiftright =" (value"><br /><br />To use these function, you do something like this:<br /><br /><span style="font-family:courier new;font-size:85%;color:#3333ff;">List1.Clear<br /><br />Dim tableName(100) As String<br />Dim tableId(100) As Long<br />Dim tableFlags(100) As Long ' 0-user, 3-system<br />Dim tableCount As Integer<br /><br />Dim fieldId(100) As Long<br />Dim fieldName(100) As String<br />Dim fieldLen(100) As Long<br />Dim fieldType(100) As Long<br />Dim fieldCount As Integer<br /><br />Dim i As Integer<br />Dim j As Integer<br /><br />tableCount = 0<br /><br />Dim cdbFile As String<br /><br />cdbFile = "\my documents\gps.cdb"<br /><br />If GetTableListFromCDB(cdbFile, tableId, tableName, _<br />tableFlags, tableCount) Then<br /><br />For i = 0 To tableCount - 1<br />' only show user tables<br />If tableFlags(i) = 0 Then </span></div><br /><br /><div><span style="font-family:courier new;font-size:85%;color:#3333ff;">List1.AddItem "Table: " + tableName(i) + _<br />" ID: " + Str(tableId(i))<br /><br />If GetFieldListFromCDB(cdbFile, tableId(i), </span></div><br /><div><span style="font-family:courier new;font-size:85%;color:#3333ff;">fieldName, fieldId, _</span></div><br /><div><span style="font-family:courier new;font-size:85%;color:#3333ff;">fieldLen, fieldType, _</span></div><br /><div><span style="font-family:courier new;font-size:85%;color:#3333ff;">fieldCount) Then<br /><br />For j = 0 To fieldCount - 1<br /><br />List1.AddItem (" " + Str(fieldId(j)) + _<br />" - " + fieldName(j) + " Type: " + _<br />Str(fieldType(j)) + _<br />" Len: " + Str(fieldLen(j))) + _<br />" ID: " + Str(fieldId(j))<br /><br />Next<br /><br />List1.AddItem ""<br />End If<br />End If<br />Next<br />End If<br /></span><br />The output looks like this:<br /></div><div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWPlR6mcTrq1-yz8l9duliWyJ6lNIfGJzKA32mAFqWvAD9NDd0OmRtemzBX_vLmnvyTbAvt1N_DU-OzF2X38piSRQhu7fo-Fk5IkBTEm1j6PxZY49VqhSKaq67DkTPvIsvIQkhzw/s1600-h/dboutput1.JPG"><img id="BLOGGER_PHOTO_ID_5023259093150835954" style="CURSOR: hand" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWPlR6mcTrq1-yz8l9duliWyJ6lNIfGJzKA32mAFqWvAD9NDd0OmRtemzBX_vLmnvyTbAvt1N_DU-OzF2X38piSRQhu7fo-Fk5IkBTEm1j6PxZY49VqhSKaq67DkTPvIsvIQkhzw/s320/dboutput1.JPG" border="0" /></a><br /><br />This code sample gets a list of all user tables in the .cdb and display them in a listbox along with each field in that table. The key things here are the TableId and the FieldId. These number are what tie the metadata to the real records in the table.<br /><br />If you are really going to read a real table, you would do something like the following. My sample .cdb file is gps.cdb and it has a table in it called note.<br /><br /><span style="font-size:78%;"><span style="font-family:courier new;font-size:85%;color:#3333ff;">' Mount a Database Volume<br />Dim filename As String<br />Dim volumeId As String<br /></span></span><br /><span style="font-family:courier new;font-size:85%;color:#3333ff;">volumeId = SregoCETPx1.MountDatabaseVolume(cdbFile, OPEN_EXISTING)<br /><br />If volumeId = "" Then<br />List1.AddItem "Unable to mount Volume: " + cdbFile<br />Exit Sub<br />End If<br /><br />' Open Database in mounted Volume<br />Dim dbHandle As Long<br />dbHandle = SregoCETPx1.OpenDatabaseByName(volumeId, _<br />"note", 0, CEDB_AUTOINCREMENT)<br /><br />If dbHandle <> 0 Then ' make sure database was opened successfully<br /><br />Dim recCount As Integer<br />recCount = 0<br /><br />While SregoCETPx1.ReadDatabaseRecord(dbHandle) ' read each record<br /><br />Dim pCount As Long<br />Dim recId As Long<br /><br />recId = SregoCETPx1.GetCurrentRecId<br />pCount = SregoCETPx1.GetCurrentRecPropCount<br /><br />List1.AddItem Str(recCount) + " - RecId: " + _<br />Str(recId) + " PropCnt: " + Str(pCount)<br /><br /><br />For i = 0 To pCount - 1 ' display each property in record<br /><br />Dim pId As Long<br />Dim pVal As Variant<br />Dim pLen As Long<br />Dim pFlags As Long<br />Dim pType As Long<br /><br />pId = SregoCETPx1.GetCurrentRecPropId(i)<br />pVal = SregoCETPx1.GetCurrentRecPropValue(i)<br />pLen = SregoCETPx1.GetCurrentRecPropLen(i)<br />pFlags = SregoCETPx1.GetCurrentRecPropFlags(i)<br />pType = SregoCETPx1.GetCurrentRecPropType(i)<br /><br />Dim tempstr As String<br /><br /><br />Select Case pType<br /><br />Case CEVT_I4, CEVT_I2, CEVT_UI4, CEVT_UI2, CEVT_R8<br /><br />tempstr = Val(pVal)<br /><br />Case CEVT_LPWSTR<br /><br />tempstr = pVal<br /><br />Case CEVT_BOOL<br /><br />If pVal Then tempstr = "True" Else tempstr = "False"<br /><br />Case CEVT_BLOB<br /><br />tempstr = SregoCETPx1.GetCurrentRecPropBlobStr(i)<br /><br /><br />Case CEVT_FILETIME<br /><br />tempstr = CStr(pVal)<br /><br />Case Else<br /><br />tempstr = "***" ' unhandled type<br /><br />End Select<br /><br />List1.AddItem (" " + Str(pId) + " = " + tempstr)<br /><br />Next<br /><br /><br /><br />recCount = recCount + 1<br /><br />Wend<br /><br />SregoCETPx1.CloseDatabase dbHandle<br /><br />End If<br /><br />SregoCETPx1.UnmountDatabaseVolume volumeId<br /><br /></span><br />The output looks like this:<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwux0sVoYYyLekgM8DqsEtY91XEgr-lEK_ThspUvsrNLCk5EwBhPcLslLxXEuMO8JLEjouuyVT0DDQCSZKLtQjjvEfJanTLGOOlByOldc6MHsGCMwxZbCQ0HMVzMziBlOO2Kolnw/s1600-h/dboutput.jpg"><img id="BLOGGER_PHOTO_ID_5023257461063263458" style="CURSOR: hand" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwux0sVoYYyLekgM8DqsEtY91XEgr-lEK_ThspUvsrNLCk5EwBhPcLslLxXEuMO8JLEjouuyVT0DDQCSZKLtQjjvEfJanTLGOOlByOldc6MHsGCMwxZbCQ0HMVzMziBlOO2Kolnw/s320/dboutput.jpg" border="0" /></a></div><br /><div><br />The property id of each field in the record can be looked up in the FieldId list populated by the previous calls.</div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-1168534893565666252007-01-11T08:57:00.000-08:002007-01-11T09:02:32.303-08:00ceJumpThe <strong>ceJump</strong> utility is one of the more arcane tools in the <a href="http://srego.com/sregocetp.htm">Srego CE ToolPack</a>. The tool is arcane because it is not obvious from its name what it does and there is no Command Prompt equivalent for the desktop. This posting’s goal is to help clarify what this tool is for and help users get more out of the Srego CE ToolPack Command-Line tools.<br /><br />The concept behind <strong>ceJump</strong> is simple. It provides a quick way to edit a file located on the connected device from the desktop. The same tasks can be accomplished with other tools in the CE ToolPack. It may be enlightening to see what the process is using the other tools to better understand what ceJump actually does.<br /><br />Let’s say we have a file on the device called addprop.txt. This file is located in the \my documents directory and is a simple text file. I need to edit the entries in this file fairly frequently to tune the application using it. Here is the process with using ceJump:<br /><br /><span style="color:#3333ff;"><span style="font-family:courier new;font-size:85%;">cepull "\my documents\addprop.txt" c:\temp\addprop.txt<br /></span><br /></span><span style="color:#3333ff;"><span style="font-family:courier new;font-size:85%;">notepad c:\temp\addprop.txt<br /></span><make><br /><span style="font-family:courier new;font-size:85%;">cepush c:\temp\addprop.txt "\my documents\addprop.txt"</span><br /></span><br />With ceJump, the process is much simpler:<br /><br /><span style="color:#3333ff;"><span style="font-family:courier new;">ceJump "\my documents\addprop.txt"</span><br /></span><span style="font-family:courier new;"><br /></span>If the current directory on the device (set with ceCD.exe) is \my documents, then you could simply say:<br /></span><br /><span style="font-family:courier new;"><span style="color:#3333ff;">ceJump addprop.txt </span><br /></span><br />The <strong>ceJump</strong> utility will automatically pull the specified file from the connected device to the system temp directory on the desktop, then launches the associated application via the operating system shell. When the user exits the launched application, the file is checked to see if it had been modified. If the file had been modified it is automatically pushed back to the connected device. The utility “Jumps” over all of the steps for moving the file back and forth between the device and the desktop. Granted, you must be editing a file that the desktop shell has an association for, but your productivity with working with these files can be greatly increased.<br /><br /><br /><a href="http://photos1.blogger.com/x/blogger/1076/3325/1600/485772/cejump.jpg"><img style="CURSOR: hand" alt="" src="http://photos1.blogger.com/x/blogger/1076/3325/320/580909/cejump.jpg" border="0" /></a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-31855614.post-1165170016975647442006-12-03T10:17:00.000-08:002006-12-03T10:20:16.983-08:00Srego CE Toolpack Command-Line version 3.0.0.2 is AvailableThe <a href="http://www.srego.com/sregocetp.htm">Srego CE ToolPack Command-Line</a> tool version 3.0.0.2 is Available.<br /><br />Visit the Srego <a href="http://www.srego.com/support.htm">Support</a> page to download.<br /><br /><span style="font-family:courier new;">-----------</span><br /><span style="font-family:courier new;">03.00.00.02 - 12/03/06</span><br /><span style="font-family:courier new;">-----------</span><br /><ul><span style="font-family:courier new;"><li></span><span style="font-family:courier new;">FIX - ceStart - Now correctly handles the current directory.<br /></li></span><li><span style="font-family:courier new;">FIX - ceRmdir - was not being delivered.</span></li></ul><p><span style="font-family:Courier New;"></span> </p>Unknownnoreply@blogger.com0