Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Kazendar

  1. Kazendar

    How to convert Hexa to Float from binary file

    Please can you help me how to convert Hex values to Floating values ? in some parts of a binary file, there are values such as in description below needs to be converted. Hex: 84 9B CF 71 40 78 17 41 should become 384528.111 as floating decimal ----------------------------------------------...
  2. Kazendar

    sending keystrokes by send-keys

    Hy Crobin1, Please, may you explain the script from EggHeadCafe ? http://www.eggheadcafe.com/software/aspnet/31883987/sendkeys-to-cmdexe.aspx
  3. Kazendar

    sending keystrokes by send-keys

    Thanks crobin, i checked the thread on Egghead Cafe, and find some strange letters, so i did not try it, maybe the script for CTP2 !!! I found the script from MicroSoft very usefull, and write the next script. I hope some enhancement <code> # test_notePad.ps1 function wait {...
  4. Kazendar

    sending keystrokes by send-keys

    I used VBS in the past, but not anymore. Today i am trying to write scripts in PowerShell v1 if possible .
  5. Kazendar

    sending keystrokes by send-keys

    Thanks, i need it to run some Windows programs, like ArcView from ESRI. It is easer for me to create a script as macro with sendKeys
  6. Kazendar

    sending keystrokes by send-keys

    Does PowerShell v.1 has an ability to use send-keys as keystrokes to with Windows programs ? like in VBS
  7. Kazendar

    How to read header-line from CSV file

    Thanks EBGreen, I used get-member as: ... | get-member -MemberType NoteProperty | etc... But i got the field-names as sorted, which is mostly not in their original places. How to determine how many records there are for each field ?
  8. Kazendar

    How to read header-line from CSV file

    The main reason for this work, is to get the maximum information from any CSV file-format. the idea starts from, how to know the field-names of the header-line and their counts from CSV file-format. I start this work by reading properties and got the numbers. But the problem becomes...
  9. Kazendar

    How to read header-line from CSV file

    I tried to use the most of Import-CSV , so i write this script import-csv.ps1 I know it looks like a puzle, but at least i did my best effort. There should be a better way and shorter than this, i hope if we can make it to work with any CSV-file, because realy i did not try with other...
  10. Kazendar

    get week of year for old date

    Very sorry EBGreen, crobin1 and for all. Should be used %V instead of lower-cases. Correction: get-date -date "1/1/2009" -uFormat %V # 1 Documented at PowerShell Help file. search for Get-Date . . . Week: · W Week of the year (00-52) · V Week of the year (01-53) ·...
  11. Kazendar

    get week of year for old date

    Why are there different results ? what it is wrong with %w lower-case ? the value is 4, instead 0 %W with upper-case . get-date -date "1/1/2009" -uFormat %W # 0 upper-case W get-date -date "1/1/2009" -uFormat %w # 4 lower-case w
  12. Kazendar

    get week of year for old date

    # to get WeekOfYear we use the following : get-date -uFormat %W # 1 get-date -uFormat %w # 3 # today is "01/07/2009" MM/DD/YYYY # but how to get WeekOfYear for old or future date ?
  13. Kazendar

    How to read header-line from CSV file

    How to get the header-line from CSV file ? and how to define the second field-name ? to get all records from that field-name.
  14. Kazendar

    Property 'size' in Excel

    Hi crobin1, i am using Excel 2007, and the error is still : Property 'size' cannot be found on this object; make sure it exists and is settable. ............. etc
  15. Kazendar

    Property 'size' in Excel

    I need solving for error at line 13, besides there are two warning/notes. The script is running but with these fails. # xls_test.ps1 function Invoke() { param([object]$m, [string]$method, $parameters) $m.PSBase.GetType().InvokeMember($method, `...

Part and Inventory Search

Back
Top