Query adding Spaces after it is compiled
Posted: Wed Aug 29, 2018 8:49 am
To help you better we need some information from you.
*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: 5.5.154
32 or 64 bit version of product: 64
Operating system:
32 or 64 bit OS: 64
#search directory and store uin.mdb into variable
$test = (get-childitem "C:\ROWriterData" -Recurse -include ?????.mdb -Exclude "Ishop.mdb") | select name
$test2string = $test | Out-String
$testtrim = $test2string.Trim()
$testrefine = $testtrim.Remove(0, 286)
#create registry entries
New-Item -Path HKCU:\Software -Name "Progressive Automotive Systems" –Force
New-Item -Path "HKCU:\Software\Progressive Automotive Systems" -Name "R.O. Writer" –Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Progressive Automotive Systems\R.O. Writer" -Name "DataPath" -Value "C:\ROWriterData" -Force
When I compile this with setting in the attached screen shot it add's spaces instead of removing them.
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: 5.5.154
32 or 64 bit version of product: 64
Operating system:
32 or 64 bit OS: 64
#search directory and store uin.mdb into variable
$test = (get-childitem "C:\ROWriterData" -Recurse -include ?????.mdb -Exclude "Ishop.mdb") | select name
$test2string = $test | Out-String
$testtrim = $test2string.Trim()
$testrefine = $testtrim.Remove(0, 286)
#create registry entries
New-Item -Path HKCU:\Software -Name "Progressive Automotive Systems" –Force
New-Item -Path "HKCU:\Software\Progressive Automotive Systems" -Name "R.O. Writer" –Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Progressive Automotive Systems\R.O. Writer" -Name "DataPath" -Value "C:\ROWriterData" -Force
When I compile this with setting in the attached screen shot it add's spaces instead of removing them.
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM