take a look at the mass_converter.vbs, it uses windows script host to
get a folder and a collection of images to get passed to the imf_disp.
'get folder object and files collection
Set oFolder = filesys.GetFolder(nFolder)
Set fColl = oFolder.Files
'the collection
i = 0
t1 = Timer
For Each f in fColl
fullName = f.name
fExt = chkExt(fullName)
If Not fExt = "mmh" Then
realName = Left (fullName, InStrRev(fullName,".")-1)
inFile = ckSlash(nFolder) & fullName
outFile = ckSlash(outFolder) & realName & ".map"
'invoke the imf_copy for each image
return = oShell.run (pImfCopy & "imf_copy " & strFlags & " " _
& """" & inFile & """" & " " & """" & outFile & """", 0 , true)
If Not return = 0 Then 'imf_copy closed with errors
MsgBox "Errors occurred for " & inFile, 32, "Info"
Else
i = i+1
End If
End If
Next
t2 = Timer
t1 = t2-t1
MsgBox "Converted " & i & " files over " & e &", in " & ForMAtnUMBER(t1) & _
" secs", 32, "Info"
you then need just a javascript file that will be engaged from psd to launch the vbs
back script... that means you can also double click the vbs file and use it as a .bat file,
the .vbs is not related to psd in this case. the conclusion is… don’t use .bat files with dos
cmds where wsh is more clear and effective.
ciao
francesca