SCOUG-Programming Mailing List Archives
Return to [ 13 | 
February | 
2004 ]
<< Previous Message << 
 >> Next Message >>
 
 
 
Content Type:   text/plain 
On Thu, 12 Feb 2004 18:53:05 PST8, Peter Skye wrote:  
 
>I need a simple little command line utility  
>which calls DosGetDateTime and then displays  
>the "SHORT timezone" value above.  
 
 
Peter,  
Have you considered using REXX for this task? It's easy and simple, as compared to   
C or C++. "Simple little command line utilities" are bread and butter for REXX.  
 
With regard to my suggestion to use the commandline line input,  
 
	SET > C:\ENVIR.TXT   
 
to create a text file, I do that in REXX programming, when I cannot find any other way to   
place a value into a variable. When that hapens, I can get the value into a temporary   
ASCII file, I can then use the facilities in REXX to read the contents of the ASCII file into   
memory (REXX variables) and then erase the ASCII file and proceed on with the rest of   
the REXX program. I know that is NOT very elegant programmimg-wise, because you   
lose some speed and processing time by read/writing files, versus directly using an   
API call or some other direct facility of the programming language. Nevertheless, it   
does work and I am stuck or a better way.  
 
Now, tell me how are you going to use the DOSGETDATETIME call? It's my   
understanding that this function is part of the OS/2 trace facility. Using the Trace   
Formatter, I believe that you still have to have the system copy the   
DOSGETDATETIME results to a file in order for you to get access to it for   
programming purposes. Am I wrong on that? How else are you going to access it for   
programming a commandline utility?  
 
HCM  
 
 
=====================================================  
 
To unsubscribe from this list, send an email message  
to "steward@scoug.com". In the body of the message,  
put the command "unsubscribe scoug-programming".  
 
For problems, contact the list owner at  
"rollin@scoug.com".  
 
=====================================================  
 
  
<< Previous Message << 
 >> Next Message >>
Return to [ 13 | 
February | 
2004 ] 
  
  
The Southern California OS/2 User Group
 P.O. Box 26904
 Santa Ana, CA  92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group.  ALL RIGHTS 
RESERVED. 
 
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International 
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
 
 |