News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Handling bitmaps

Started by Vortex, May 29, 2018, 04:29:54 AM

Previous topic - Next topic

Vortex

Hi zedd,

You can write a simple Visual Basic script to avoid the console window displayed by batch files :

Capture.vbs :

Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run ("H:\masm32\SaveDesktop.exe H:\masm32\capture.bmp")
Set objShell = Nothing


Also, you have to take in account the paths with space characters in the script files. An example :

https://stackoverflow.com/questions/28379207/launch-program-from-vbscript?rq=1