|
my video file extension is wmv.and i want that water mark for the entire duration of time
|
|
|
|
|
It would be easier if you posted answers in their original thread, instead of starting a new post. The forum will be harder to read if the same questions are being repeated over and over again.
So, replies go here[^].
BTW, we're no take-away chinese, and ordering code usually doesn't work. Most of us are glad to help a collegue out, but the chances that someone is going to write the code for you are very slim.
I are troll
|
|
|
|
|
Hello,
i use this to get all files in directories :
<br />
string[] files = Directory.GetFileSystemEntries(@"C:\");<br />
int filecount = files.GetUpperBound(0) + 1;<br />
if (filecount != 0)<br />
{<br />
DirectoryInfo di = new DirectoryInfo(@"C:\");<br />
<br />
foreach (FileInfo file in di.GetFiles())<br />
{<br />
DateTime Now = DateTime.Now;<br />
string name = file.Name;
string fullName = file.FullName;
}<br />
i would get not all files, but a file with a specific name lake doc1.pdf, thank you verry mutch.
|
|
|
|
|
just test if (file.Name.Equals("doc1.pdf")) // replace 'doc1.pdf' with your variable
|
|
|
|
|
We can't get the file path directly?? beacause i need to got two file with the same name, for exemple get the files doc1.pdf and doc3.pdf, thank you verry mutch.
|
|
|
|
|
Hi,
Before anyone can give you an answer you do need to decide what your question actually is. You started by asking how to find one file and now that you have that answer you have changed the question.
In the code you posted you used the DirectoryInfo.GetFiles method. If you were to invest some time in reading the documentation for that method and it's overloads you would be able to answer either of your questions on your own.
Alan
|
|
|
|
|
Hi,
as usual it helps to read the documentation: there is an overload of GetFileSystemEntries that accepts a filter, where you can specify part of the filename, as if you were searching in Windows Explorer.
Hence try Directory.GetFileSystemEntries(@"C:\", "doc*.pdf")
BTW: files.GetUpperBound(0) + 1 is terrible, just use files.Length
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
modified on Sunday, June 12, 2011 9:02 AM
|
|
|
|
|
Hey All,
I am trying to write an add-in for MS Word 2007. This add-in in one of its contexts helps the user create a a template automatically. Whenever a new template is created, these templates have to be avaialable for the user . Now what would i want to do is to create an extra menu specifying the list of "My Comapny" folder which carries all the templates that have been dynamically generated. I would like to have this list as a part of the Templates list i view when i press : Office > New > Templates. I hope you have understood where i would like to see my Template folder.
Plaese Help
Thanks in advance
Teja
|
|
|
|
|
Hai all,
I m using asp.net
in my application having a gridview>Sometimes i may get huge datas.
So i want load when scrolling the grid,at the same time initially i want load first 10 rows
can any one help?
thanks.
modified on Monday, March 2, 2009 4:45 AM
|
|
|
|
|
Try to populate the grid in Scroll event handler based on the scroll value. Actually, you may use a separate scrollbar(set the Min and Max based on the items count) and hide the one from gridview.
Calin
modified on Monday, March 2, 2009 4:48 AM
|
|
|
|
|
Hi friend
can any body tell me how i can insert website link to the message box message.
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
|
|
|
|
|
The MessageBox class hasn't got any public constructors, so you can't inherit from it.
How hard would it be to create a form to do what you want to do?
Display some text, a couple buttons, a LinkLabel and an icon or two?
Come on man...
Judging by your modest signature you should know better than that ;>
var question = (_2b || !(_2b));
|
|
|
|
|
Greg Chelstowski wrote: Judging by your modest signature you should know better than that ;>
I think that ur SPY and want that i should do some mistake while taking over the problem and any company arrest me.
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
|
|
|
|
|
i want to add the water mark on video file during the capture .
so how could i do the same?
pls help me.
thanks
|
|
|
|
|
The same way that you would use to add subtitles
There is no "modify video files"-class in .NET that I'm aware of, and "video files" are available in lots of file-formats. What's your starting-point?
I are troll
|
|
|
|
|
Hi All,,
I Want To Get All Foreign Key From A Table And the Referenced Table Of This Foreign Key,,
How I Can DO That???
Thanks All;;;;
|
|
|
|
|
It depends on the database you're using ? If you're using SQL Server, I know it's possible to come up with SQL that queries the system tables for this sort of info.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Yes,,
I Use SQL Server 2005 ,,
but I Don't Know the Query,,
Please u can get it For Me Now>???
thanks a lot
|
|
|
|
|
Select * from INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE
or
Select * from INFORMATION_SCHEMA.KEY_COLUMN_USAGE
would be my best guess.
var question = (_2b || !(_2b));
|
|
|
|
|
Hi
I am using Directx.Capture for Video Recording & Image Capturing.
Now I want to manage color at the time of Video Recording.
How can I do this?
Thanks
|
|
|
|
|
Manage it how ? Change the colors on the screen ? Why not do this in post processing ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I want to change the background color during recording.
As we can set the colors in tv.
|
|
|
|
|
Hi,
I am working with WindowsApplication in VS.NET 2005
I have listed the folders in a drive...for eg:
C:\projects\ports.ports folder in turn contains 10 other folders namely 10000,10001 etc...
I have created a separate application for the client and server to communicate...I have compiled the server application and copied the exe file into folder 10000 and i have included the client as a function in Form1.cs.
In my tool i.e. VS.NET 2005, i have written code to list exe files in a folder.So it gives me Server.exe with a button click.I wanted to run this exe file...I used Start() to do so. The exe file opens when i click start button.
Now i want to send a message from the client to the server(i.e .exe file opened with a button click).Is it possible to do this?
I had a try with this...When i click send button to send message from the client to the exe ,the exe closes...I have not closed the socket in side th code...I dont know why that happens...
Please help me out with this...Thanks for any help in advance.
|
|
|
|
|
Please urgent help i need from you.....
I am doing project in C#.....I am doing identifying text spam. For that i have to extract the text from an image in C#...Please help me how to do this in C#?
Please reply me....
|
|
|
|
|
I've given you an answer about 15 minutes ago. If you have any questions about my answer, feel free to reply to my answer and ask them
|
|
|
|