vscopy is a command-line tool to create volume shadow copies. Windows 7 and upwards are supported.
vscopy <volume_letter> <assigned_letter> <file_to_execute>
Example :
vscopy C: V: Backup.bat
Backup.bat :
copy V:\Data\*.doc D:\Backup /y
V: is the volume copy of C: After the creation of the volume shadow copy, Backup.bat is executed to copy files in the folder C:\Data
Many thanks to TimoVJL for the conversion of the C++ code to Pelles C. Also, thanks to Frankie for his SDK for PellesC.