Search found 5 matches

by trinityr
2016-08-05T13:18:53-07:00
Forum: Windows COM+ & Visual Basic
Topic: Identify and Convert using VB Script
Replies: 8
Views: 78030

Re: Identify and Convert using VB Script

If you notice the code attached is using a full UNC path to search thru. The attached script fails with that error. However, if I set strPost to current directory it works like a charm. Taking that out of the equation and hardsetting the drive and path with objfile.name returns the same error as wel...
by trinityr
2016-08-04T19:58:04-07:00
Forum: Windows COM+ & Visual Basic
Topic: Identify and Convert using VB Script
Replies: 8
Views: 78030

Re: Identify and Convert using VB Script

I'm not sure if this is a bug or working as intended, but I am only able to use the COM object from current directory and must use objFile.name. When trying to use objFile or search subfolders of a given directory I receive: error 435 unable to open image 'test image (1).tif': No such file or direct...
by trinityr
2016-08-04T09:19:03-07:00
Forum: Windows COM+ & Visual Basic
Topic: Identify and Convert using VB Script
Replies: 8
Views: 78030

Re: Identify and Convert using VB Script

Updated the script to use convert instead of identify. Option Explicit Dim objFSO, objRegEx, objShell, img Set objFSO = CreateObject("Scripting.FileSystemObject") Set objRegEx = CreateObject("Vbscript.RegExp") Set objShell = CreateObject("Wscript.Shell") Set img = Creat...
by trinityr
2016-08-04T08:40:33-07:00
Forum: Windows COM+ & Visual Basic
Topic: Identify and Convert using VB Script
Replies: 8
Views: 78030

Re: Identify and Convert using VB Script

That did resolve the error, but empty result window.
by trinityr
2016-08-04T08:14:55-07:00
Forum: Windows COM+ & Visual Basic
Topic: Identify and Convert using VB Script
Replies: 8
Views: 78030

Identify and Convert using VB Script

I am not sure if Imagemagick can do this or not. I have been unsuccessful so far. I would like to be able to do the following: 1. Search for files with the file extension of .tif and file size is greater than 0. - This step is done and working 2. If found I need to identify the actual MIME type of t...