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
----------------------------------------------...
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 {...
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 ?
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...
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...
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)
·...
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
# 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 ?
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
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, `...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.