Simple Calculation Script
The code needs add to a program that will calculate readings from meter.
The code needs add to a program that will calculate readings from meter.
Hi, I am looking for someone to write four Transformation scripts in either VB or JScript to pull out the the urls for up to four pics in for each data set (see attached).
If no pic then return blank
An example of a pic url is
“http://img1.classistatic.com/cps/kj/090830/825r9/2112454_18.jpeg”
Here is an example of a transformation script used to find number of beds
Function Main ( strText )
dim strResult
strResult = Bedroom_String ( strText , strSearchFor )
Main = strResult
End Function
Function Bedroom_String ( strText , strSearchFor )
dim nPos, strResult
nPos = InStr ( strText, ” 1 bed” )
If ( nPos > 0 ) Then
strResult = 1
Else
strResult = “”
End If
Bedroom_String = strResult
End Function
I hope this is pretty clear and PM with any questions
What I’m trying to do is: Check to see if script is assigned to a user in ldap, check to see if it has run before on computer, and if it has exit. If it has not then create folder, set attributes, and copy all contents. I think I could do this well enough in wscript?
Check LDAP attribute such as “carlicense” to see if it should have a “yes” or “no”.
If no; exit cleanly.
If yes; check to see if it has been run on computer “HKCUSOFTWAREMicrosoftWindowsCurrentVersionExplorerUser Shell FoldersFavoritesCopied” If yes; then exit.
If no; The key doesn’t exist or does exist but doesnt have yes then:
1. Create the folder %HOMEDRIVE%Favorites
2. Set attributes to Hidden, Read Only, & System for %HOMEDRIVE%Favorites.
3. Copy all files and folders from %USERPROFILE%Favorites into %HOMEDRIVE%Favorites.
4. Change “HKCUSOFTWAREMicrosoftWindowsCurrentVersionExplorerUser Shell FoldersFavoritesCopied” to yes.
5. CleanUp and exit without subroutines timing out.