Works great now with a small exception.
The command prompt remains open after it's run.
The rename script won't run until it closes.
Thanks again for all of your help!
Yes, this is correct.
It is hitting the z:\Photograph folder, but instead of running the 'convert -resize 120x150 *.jpg' command, it just opens a command prompt.
Thanks Geates-
Yes the file is named renamefiles.vbs
I apologize for the lack of knowledge.
I'm trying to tell the cmd to run when it's in the 'z:Photograph' folder. The 'convert -resize 120x150 *.jpg' is part of ImageMagick cmd for re-sizing images.
I'm not intentionally trying to give it...
Thanks for the help.
I included the end quote and ran again. Receiving an error message:
Script: Z:\Photograph\renamefiles.vbs
Line: 4
Char: 1
Error the system cannot find the file specified.
Code: 80070002
Source: null
I don't why it's pointing to renamefiles.vbs?
Hi Guys-
Really new to vb scripting.
Trying to run a command prompt within vb script.
Dim fso,f,ext,firstChar,numOfPics,workingFolder,newFileName
workingFolder = "."
numOfPics = 0
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(workingFolder)
For Each file In...
Hi Guys-
Really quite new to vb scripting,
I'm trying to set up a command prompt within a vb script.
Dim fso,f,ext,firstChar,numOfPics,workingFolder,newFileName
workingFolder = "."
numOfPics = 0
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(workingFolder)
For...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.