Filesystemwatcher That Watches A Couple Of Folders
Oct 22, 2009
I have a filesystemwatcher that watches a couple of folders! The files coming to the watched folder are coming from a server. And for some reason the created event is not raised..If i move the files for a sec from the watched folder to a another folder and then copy them back to the watched folder it all works fine! Strange.So if the created event is raised from the same computer that the service is installed on it works great, but not if the files are coming from another computer.
View 2 Replies
ADVERTISEMENT
May 25, 2009
how do I move couple of folders all into another folder
View 3 Replies
Jul 29, 2011
I've written a nice service that monitors our FTP folder, then sends out email notifications to the respective Sales / Customer Service reps associated with the client whose folder has been modified.Working great! ...until a CSR asked if there was any way to make is so that email notifications only get sent out if if's the customer making changes to the folder, not someone internal adding / deleting files to the FTP folder...
So, my question is this - is there any way, and if there are multiple ways, what's the best way to tell WHO is making changes to an FTP folder? is there a way to capture an IP address?Being relatively new to .NET (all of about 8 months sporadically...) I'm hoping that a veteran that knows more about .NET than I will get me going in the right direction!
View 14 Replies
Apr 15, 2011
Can i monitor changes to the registry like monitoring the files and folders using filesystemwatcher?
View 10 Replies
May 29, 2009
I am a sys admin for a company and our programmer left several months ago. a program they wrote is now failing and i am struggling to work out why. the program basically pulls data from a csv file into a readable form, written in visual basic. the application works on a couple of machines but not on a couple of others. i have matched up .Net framework versions, MS Primary Interop Assembly versions, still no joy. As the app works on some pc's i am wondering what other differences could cause this?
The error output is:
see the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
Exception Text
CODE:
JIT Debugging
To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
For example:
CODE:
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
View 8 Replies
Feb 20, 2012
In Visual Studio Express 2010 using Visual Basic 2010 how does one set watches on variables so that one can check values whilst a program is being de-bugged.?
View 5 Replies
Jun 21, 2010
I have a directory structure as follows;
ad_folder
--folderA
--folderB
--folderC[code]....
at I do not know the number of or the names of the folders, they can be different in different cases, I only have the root path.how I can display folder contents in VB.net and the code worked but couldn't figure out how to create the arrays and display only folders within folders starting with "ad_".
System.IO.DirectoryInfo and System.IO.FileInfo to be used for getting the folders.A literal control can be used to create javascript arrays in ASP.NET. These js arrays can then be used on the client side.
View 3 Replies
Feb 1, 2010
It appears that when IO.Directory.GetFiles tries to read a folder that it doesn't have access to it throws an exception & stops reading. Is there any way to have skip those folders & continue reading the rest of the folders?
View 1 Replies
Sep 22, 2010
I have seen lots of examples with a treeview to list folders then display the folders context in a listview.
But what id like is a checked treeview, that not only displays the folder list, but the actually folder contents as well.
View 2 Replies
Mar 13, 2010
I use the code below to fill the list box and it works great. But i need it to only look in the \Software and \Software\FolderName Foldername could be any folder in the Software folder i need it to get all the .exe from software folder and only one more folder deep no more.
[Code]...
View 3 Replies
Apr 7, 2010
I need help with file enumeration. I'm trying to create a program that can list files, folders and sub folders locations in a log file for diagnostic purposes. After it searches it can open notepad and display the results. The problem I'm having is that I'm a beginner and not familiar with file enumeration.
View 14 Replies
Jan 9, 2011
Is it possible to have radio buttion 1 control this code and have radio button 2 control the same code with different sizes? If this can be done it will get me buy until I learn a better way. It is a small envelope app, someday I will add a database to it too hold all my address. Right now I only use a couple different sizes.
View 26 Replies
Mar 25, 2012
i want to random 3 variables...
dim a as integer = 1
dim b as integer = 2
dim c as integer = 3
dim result as integer
result = random ( a , b , c)
How do i write the random stuff in visual basic.and how would i write something that Deletes the a from the random ( ); so im only left with random ( b , c ).
View 1 Replies
Sep 22, 2010
For example I have a form that have 2 Label Boxes both have values inside. lets say that the first Label box value is:
5┌─┐ this button adds value of 1 to the first label box (5)
the second label box value is:
2
┌─┐ this button adds value of 1 to the 2nd label box (2)
in here I have a label box to display Total: 7 so when i click each button, I would like that Total label box calculates Total of Label Box 1+2
View 4 Replies
Sep 3, 2009
I`m trying to figure out how to use a timer to do something for a couple of seconds. Let`s say i want to prompt a message for 5 sec and after to disappear it.Or On a button`s click to appear an image and after 3 sec to disappear it. How i`m i going to do it?
View 8 Replies
Jan 16, 2010
I have a class SELF that is hosted by a couple different classes. Basically, the hosting class HOST calls a method in SELF. SELF is passed HOST as an argument in the constructor, so SELF can call methods in HOST. In normal situations, a call to HOST will do something minor, then return so that SELF can continue. However, for one particular type of HOST, one of the calls from SELF to HOST will cause HOST to call SELF, and so on ad infinitum. A classic, though convoluted, case of recursion. Once again, this is only going to happen for one type of HOST. For other types of HOST, that particular call will not cause HOST to call SELF, so there will be no recursion. Nonetheless, there is no getting around it in one case.
I can see two means to decouple the recursion, and I am wondering which one (or a third) would work best:
1) Add a timer into that particular HOST so that the call from SELF that would trigger the recursion would actually just start the timer in HOST, then return. When the timer ticks, HOST can call SELF. The recursion is broken because the call to SELF is done on the timer event, and not when SELF called HOST.
2) As it happens, HOST makes the first call to SELF in a background thread, which means I don't really need to worry whether this thread blocks or not. Therefore, I could have this background thread spawn a second background thread to make the call to SELF, then have the initial HOST thread JOIN on the second thread. This means that the initial thread will block until the second thread finishes. Meanwhile, the second thread will call HOST, and the HOST won't call back to SELF, it will just return like all the other HOST objects would do. This will allow the second thread to run to completion. When the second thread completes, the first thread will take over and call SELF again on a new second thread. Therefore, the recursion is broken because the secondary thread will always run to completion, and the primary thread will wait for the secondary thread to complete, then call it again.
I tend to prefer the second option, because the first option involves a pause of some length (the minimum for a timer, which is pretty small), while the second doesn't, but the first option is actually a little easier to implement.
View 6 Replies
Aug 20, 2009
1) Does this code make text the selected items text? If it doesnt then how would I do that?Dim text As String text = ListBox1.SelectedItem.ToString()
2)How would I make it so that if in combobox.items there is an item with the same text as the listbox selecteditem it is removed? This is what I have and it doesnt work.
If ComboBox3.Items.Item(text) Then
ComboBox3.Items.Remove(text)
End If
View 3 Replies
Jan 13, 2009
Very new to web development and had some session issues a couple of days ago. I have those now resolved but having trouble telling the page to redirect home after the session expires.
Using the example from my previous post:[URL].. I have this set in areas of my main page in order to redirect if the session has ended.
If Session("UserClassInstance") Is Nothing Then Response.Redirect("Login.aspx")End If During the testing; after Session_End fires, I go to the control that contains the above statement but seems to think that the session not nothing and will not redirect.
View 3 Replies
May 7, 2012
Have built a project and associated it with a Setup&Deployment Project. The S&D project needs to contain 2 main folders (under User's Desktop) with various formats of files (xmls, txts, dlls) inside them and several subfolders. How can i copy/import these 2 folders and there sub-files/folders into my s&d project?
When adding them in the usual way, they are copied and defined a source path onto the current pc. You can understand what errors this might create when an another targeted pc does not contain those files to the exact location. Is there any way to copy them locally or somehow import them?
View 5 Replies
May 11, 2009
I'm just trying to figure VB out from a couple tutorials. I thought I was doing this right, but apparently not. Can anone tell me what it is?Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim g As Graphics = Me.CreateGraphics() g.DrawLine(Pens.Black, 0, 0, 50, 50) End Sub End Class
View 4 Replies
Sep 22, 2011
In fact, the process is being written into a library to be pulled in from other applications. However, how do I provide a way for a WinForm to subscribe to the process to update as the process gets executed? I've open this question from both VBA/VB6 and .Net because its part of the gamut for UI development.It's also worth mentioning that these are subroutines and not classes that are running the methods, so event raising appears to be out of the question.[code]
View 1 Replies
Feb 16, 2009
When I downloaded VB 2005 Express I took advantage of the bundle of goodies on offer and downloaded SkinCrafter Light.I really like the four skins that come with SkinCrafter Light, and I am using one on my current project (example of the skin I am using here). However, SkinCrafter Light has a couple of bugs with RichTextBoxes (these bugs are known to SkinCrafter, as I can see posts about them in their forum, but they have gone unanswered in over two years!)One bug is that any text that is colored in a RichTextBox is turned back to black when the skin is applied, and if you click anywhere in the RTB the application will crash (you can see my RTB on the right bottom of the form in my screenshot above).
I use colored text in my RTB, but, at a pinch,I could make do without (as I really DO like the Skin), but the problem remains of crashing when clicking inside a RTB.I was wondering (can't test at the moment as I am at work) if simply placing a control, such as a Button, Label, Picture box etc, set to transparent, over the top of the RTB, would solve the problem, so a user could not click inside the RTB (but would be clicking on the invisible control over the top instead).
View 1 Replies
Apr 18, 2010
I'm trying to make the following snippet work in VB6 but it's one error after the other. can anyone make heads or tails of this?
Basically i'm after a little proggy which will store the names of a couple of products, calculate product code (first three and last three characters of product name) produce a list of products stcked with their initial stock levels, allow info on products be search for, allow the products to be purchased.
CODE:
View 3 Replies
Oct 13, 2009
Is there a quicker way to check directories? For example I want to check if the folder "A Folders" contains folders from 000A all the way to 999A then lists the folder that are missing? Do you think this is possible?
[Code]...
View 15 Replies
Jun 30, 2010
I am in the following situation: I have been requested to write an application for managing where we have customers - this must flag up when we try to add a customer too close to another one, so must be able to calculate distances based on post codes.I have chosen to use ASP.Net VB because I am fairly good at that and I like that the browser does all of the layout for me (using Java or C# would mean having to position each element individually).I have copied a few files from the company's website (which I also wrote) and modified them to account for the database structure we need for the new app.I have designed the database to account for the requirements of the new app.I have set up a website in IIS on port 81 through which to view the app.
[Code]...
View 1 Replies
Mar 25, 2010
How to change the color and case (to upper)of a couple of strings when the user input them in a richtextbox?
View 1 Replies
Feb 2, 2011
I use the removeRange function to remove a couple elements from a list, but the Count of the list seems to be intact, so I assume it didn't work the way I expected it too.... so, how do you remove elements? I mean, reduce the list's Count value ultimately.
View 3 Replies
Aug 25, 2009
My application (MDI if that matters) has what appears to be a very quick jump/shift/jerk (lots of descriptions of it) in the first minute that the application is running. I have tried double buffering all the forms...
View 3 Replies
Dec 26, 2011
i've been searching for a way to delay a part of my program to let another part load, all i have found is threading sleep and one way which uses huge amounts of processing power. does anyone know a simple way to pause a part of script for a couple of seconds and then letting it run again? ( the problem is i need to get values from core temp, i also need to open it in the program. at the moment it say's "Object reference not set to an instance of an object." because it hasn't loaded by the time it is tried to be accessed. )
View 8 Replies
Aug 27, 2009
I would like to make a program that will automate a couple things on a webpage. Here is the things I would like to automate:
[Code]...
View 2 Replies