Zack
asked on
VBScript - Copy files of a specific image bit depth.
Heyas,
Is there a way using Vbscript to copy files that have specific image bit depth?
Thank you
Is there a way using Vbscript to copy files that have specific image bit depth?
Thank you
ASKER
Hi ,
Thanks for the script but could you explain how it functions.
What this section doing for instance:
If LCase(Right(Wscript.FullNa me, 11)) = "wscript.exe" Then
strPath = Wscript.ScriptFullName
strCommand = "%comspec% /k cscript """ & strPath & """"
Set objShell = CreateObject("Wscript.Shel l")
objShell.Run(strCommand), 1, True
Wscript.Quit
End If
Also does Windows 7 have the same of attributes as Vista in reference to the section below:
' Vista has 267 attributes
ATTRIBUTE_COUNT = 266
Thanks for the script but could you explain how it functions.
What this section doing for instance:
If LCase(Right(Wscript.FullNa
strPath = Wscript.ScriptFullName
strCommand = "%comspec% /k cscript """ & strPath & """"
Set objShell = CreateObject("Wscript.Shel
objShell.Run(strCommand), 1, True
Wscript.Quit
End If
Also does Windows 7 have the same of attributes as Vista in reference to the section below:
' Vista has 267 attributes
ATTRIBUTE_COUNT = 266
Sorry, I had the strFile reference in for testing. It's not required, so I have removed it.
As for the top 7 seven lines, it just makes sure the script runs under the cscript engine, rather than wscript. If you don't care about that, you can remove those 7 lines.
Also, as far I can see, Vista and above have the same number of attributes for GetDetailsOf
Regards,
Rob.
As for the top 7 seven lines, it just makes sure the script runs under the cscript engine, rather than wscript. If you don't care about that, you can remove those 7 lines.
Also, as far I can see, Vista and above have the same number of attributes for GetDetailsOf
Regards,
Rob.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thank you for the advice.
No problem. Thanks for the grade.
Regards,
Rob.
Regards,
Rob.
Regards,
Rob,
Open in new window