Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Get the photo path of the students
- $commandAD = $connection.CreateCommand()
- #Retrieving student photo records.
- $commandAD.CommandText = "SELECT [Barcode],[ImageURL] FROM
- [iSAMS_Custom].[dbo].[vwDestinyLibrary_Student_photo1]"
- $resultPhoto = $commandAD.ExecuteReader()
- $tablePhoto = new-object "System.Data.DataTable"
- $tablePhoto.Load($resultPhoto)
- #Export Hash Table to Txt File
- $tablePhoto | Out-File c:Usersnimmy.pkDocumentsinputphoto.txt
Add Comment
Please, Sign In to add comment