Establishing a Naming Scheme in Console

Somewhere to ask questions about the best way to use SharpCap
Forum rules


If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs
Post Reply
zhoutman
Posts: 3
Joined: Wed Mar 10, 2021 7:28 pm

Establishing a Naming Scheme in Console

#1

Post by zhoutman »

I am curious what the best way to establish a naming scheme inside the console would be. The issue arises from us wanting to create a new folder for each frame-capture session. This means we have to make a new directory each time for the CaptureSingleFrameTo() command. Would it still be best for me to use this command for this method or is there another method to do so?

Thanks in advance.
User avatar
admin
Site Admin
Posts: 13173
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Establishing a Naming Scheme in Console

#2

Post by admin »

Hi,

you could certainly create all your own directories and file names and specify the name of each file, but you end up re-writing a lot of code that SharpCap already has.

You can already set up highly flexible file naming patterns - see https://docs.sharpcap.co.uk/3.2/#Filenames%20Tab . If you use these then directories are created for you and frame capture files are numbered 00001, 00002 etc. Consider setting the target name in your script to distinguish each capture run.

cheers,

Robin
Post Reply