If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > VB 6.0 multiple file saver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-02-03, 21:43
WaterFish22 WaterFish22 is offline
Registered User
 
Join Date: Sep 2003
Location: Iowa
Posts: 1
Post VB 6.0 multiple file saver

Visual Basic 6.0

what to find a way to make a multiple file saver.

Here what what i'm doing and what i need. A video camara detects motion that motion is then detcted by an "If then" statment. If the statment is ture it's starts recording the movie. This starts all over again when the progam detects motion.

Here my probblem... so far i can save the file to a directory. This is good but, when the progams repeats it's self it just right over the same file. Insted i want the progam to create a new file name each time i record a movie.

Here my source code that saves a movie to a curent directory:

Sub Moive()
Dim MovieFile As String
MovieFile = "c:\windows\desktop\sample.avi"
'Records a movie
VideoPortal1.StartMoiveRecoding MovieFile, ""
Timer1.Interval = 100
Timer1.Enabled = True
End Sub

Any question Send to
waterfish2222222222@yahoo.com
Thanks for your time!
Reply With Quote
  #2 (permalink)  
Old 11-13-03, 14:42
KillaCrab KillaCrab is offline
Registered User
 
Join Date: Jun 2003
Posts: 24
Cool

use the timestamp as your file name that way you wont have a with file names.

e.g. (this is not the best approach)

MovieFile = str(Now())


You can generate your own timestamper
__________________
water water everywhere and the boards did shirnk
water water everywhere not a drop to drink
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On