Process Multiple Files?

Apr 16, 2009

made a simple application which converts a PDF to csv.making some changes to have the app read multiple PDF's and convert into one CSV.

Heres my code.
Imports System.IO.StreamWriter
Imports System.IO

[code].....

View 2 Replies


ADVERTISEMENT

Will FileSystemWatcher Process Multiple Files At Once?

Jun 1, 2009

I have a Windows service that is watching a folder for files that will be placed there.(Created in Visual Studio 2005.)The files each represent a transaction, and the transactions have to be kept in order.As I process each file (transaction), I want to forward it to someone else.(The someone else wants them kept in order.)It looks like I can't paste multiple files into a folder simultaneously and still be sure that they will be processed in the order of the original date and time they were created.Nor can I be sure that they would be read in name order.(FileSystemWatcher would grab them in any old order it chose.)So I think I will have to move the files into the folder one at a time, in the proper sequence.But I'm wondering if I could get into a "racing" situation.

When FileSystemWatcher detects a file in a folder, it creates a new thread for your event handler to operate on.If it detects a second file while still processing the first file, would it then create yet another thread?If that is the case, then if File1.xml takes longer to process than File2.xml, it seems like File2.xml might finish first, resulting in my transactions getting out of order.In my own experiments,I have not seen evidence that multiple files are really processed simultaneously.I write messages to a log file as I process each transaction, and I never see messages from File1.xml's processing intermingled with File2.xml's messages.This seems to be true even when I paste both files into the folder simultaneously.it only keeps one event-handling thread going at a time, and queues up the events as they come, processing them on that single thread.Otherwise, I'll have to do something to ensure they are kept in order.

View 9 Replies

Asp.net - Implement Security Trimming With A Website With Multiple Folders And Multiple Web.config Files?

Jun 18, 2012

I have a website that has highly granulised access and hence requires many web.config files. The problem is I would like to trim the menu so that only certain users will have access to certain folders. I have enabled trimming and setup roles in the sitemap, however when I access the page the menu is not show, as I am authorized to view the default page which is not in a subfolder. When I type the url of a page in sub folder's I have access.

How should I handle this:

A site map for each web.config file - don't know how this will work Removing the sub web.config file to only use a single one

View 3 Replies

Combining Image Files - Take Multiple Picture Files And Compact Them Into One File

Dec 10, 2009

I know this is out there and probably illogical but I was wondering if it was possible to take multiple picture files and compact them into one file.... and then retrieve them from the program later? Way to combine any amount of image files into one file

Module Module1
Sub combine()
Dim img1 As New Bitmap("i1.jpg")

[CODE]...

View 6 Replies

Searching Multiple Files In Multiple Sub-folders

Mar 30, 2010

I'm developing an application to help law enforcement retrieve and analyze logs and other files left by the use of Pidgin (a multi-protocol messenger client). Right now I'm nearly done, but I want to add the ability to search chat logs for user-defined words or phrases and I don't even know where to begin.

Chat logs are stored as html documents in a folder/sub-folder/sub-folder/sub-folder fashion, where each sub-folder can have dozens of sub-folders inside of it, and the final sub-folder can have dozens if not hundreds of chat logs. If anybody could point me in the right direction, I'd be very grateful.

(Also, this is the first program I've written since about 2005, and I'm essentially teaching myself VB as I go. If you'd like to see what I've cobbled together so far, you can find the program here.)

View 1 Replies

Running Multiple Commands In One Process

Apr 3, 2009

I understand running the command shell as a process, How would i run multiple arguments in that one process? For example, here's a process to do a netstat.[code]How would I do that with the following commands? I'd like to click one button and have these all run one after the other.[code]

View 7 Replies

Starting Multiple Documents In The Same Process

Apr 2, 2009

I am writing an application which needs to allow the user to select and open document files as a new process, edit them, then when they've finished backup the changed files automatically. For example, start a .doc file within Word or a .xls file with Excel What I wanted to do was use process.start to run the application and store the ProcessID returned in an array so that when the process finished, I could check all the files that were using that application for changes.

[Code]...

View 3 Replies

Copy All Files On Disk1 To Disk 2 / Copy Files That Are In Use By Another Process?

Mar 18, 2009

I have a backup class it copys every thing but the unmovable files witch in return when i test the dive that i just backed up all files to will not boot up missing win system32 config files??how would i add permission to my code??? or how do i over ride cant copy file because a nother process is useing it?

View 3 Replies

Check What Files A Process Is Using?

Aug 6, 2009

so my GF have a virus that sends messages to other contacts from her skype so i was wondering if i cant track it by checking if some process is using the skype communication protocol or the exe itself. while i mess with it i notice that the skype message pop up with the question if i allow my program to access it when i was using the communication protocol.

View 2 Replies

Files Owned By A Process?

Dec 29, 2011

I am writing a manager for an app that we use at the office. I have successfully written launching, monitoring, and managing number of instances using the process class.Each file is the data output for one study. Each of the 2-8 instances of the application will run 1000 studies overnight. The fault would be that the file stops growing. I cannot just check for that, because it also stops growing when it done with one study. I need to be able to determine which files are being written by which threads (or vis-versa where i know which files are 'running' and need to see who owns them)?

View 13 Replies

Process Files By Extension??

Sep 14, 2010

I have a program that processes files in a special subdirectory and the program processes the files based upon the "Type", i.e., "Text Document". If an application, such as a text editor, installed onto the system, the "Type" may change to suit that application. For example, I recently had one change the type from "TXT File" to "UltraEdit Document (.txt}". Yes, the squirrely brace was on the end, don't know why. Well, after this app was installed, my program found no files of "TXT File" type to process even though the subdirectory was full of filename.txt files.

So, how can I get the code to look at the file extension, not the Type? A few lines of the code are shown:
Private fsFile As Scripting.File

[code].....

View 2 Replies

Process.Start Files In DGV?

Mar 16, 2012

I am importing filenames into a DGV:

If FolderBrowserDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
Dim myFileDir = New System.IO.DirectoryInfo(FolderBrowserDialog1.SelectedPath)
For Each myFiles As System.IO.FileInf

[code]....

View 5 Replies

Read And Process XML Files?

Oct 28, 2011

When I google how to read and process XML files in VB.NET there are heaps of different ways - what way is right? which way is quickest?

View 2 Replies

Returning Multiple Datasets From A Stored Process

Jan 19, 2010

I have an encrypted SQL Server stored proc that I run with (or the vb .net equivalent code of):[code]this returns 2 datasets and the output parameters for the results, the datasets are made up of various table joins etc, one holds the header record and one the detail records.I need to get the 2 datasets into a structure in VB .net (e.g. linq, sqldatareader, typed datasets) so that I can code with them, I don't know what tables any of this comes from and there are alot of them Whooopeee...I came close using Linq to SQL and IMultipleResults but got frustrated when I had to recode it every time I made a change to the designer file.

View 2 Replies

Start Multiple Process Shell Commands?

Oct 25, 2009

I need to open several pdf, word and excel files from process.start like command, but only open one file at time.

View 2 Replies

Merge Multiple Excel Files Into One Excel File And It Works For 3 Source Files But Its Not Working If Workbook With Worksheet Count Is > 3?

Aug 18, 2011

I'm trying to copy multiple excel source files into one excel file. My current code is working only for 3 source files..If more than 3 files are there, it doesn't copy the data but creates blank work sheet in the output excel file. Lets say I have a source folder with 5 excel files. Each workbook contains one worksheet with data. It copies upto 3 worksheets along with data into output excel file.

Lets say excel1 contains A as work sheet, excel2 contains B as work sheet ,excel3 contains C as work sheet ,excel4 contains D as work sheet ,excel5 contains E as work sheet .Now my output excel file should look like..OutputExcel with A, B, C, D, E along with respective data.But my current code is giving output as A,B,C worksheets along with respective data but its creating blank sheet1,sheet2 in place of D & E.

SSIS Script Task Vb.Net Code:

Public
Sub Main()
Dim filePath
As
String =

[code].....

View 1 Replies

Communicate With Another Program / Process On The PC Without Using Files?

Jun 21, 2010

I was wondering about something: is there a way to communicate with another program/process on the PC without using files? What would this look like? Is there a search term I can use to get more info? This is not a vb.net question per se, but a general software question.

View 3 Replies

How To Copy Files As Different Process Without Disturbing App

Nov 24, 2011

I have a process of copying files from one path to other in my application. The problem that I am facing is, when the copy process starts. my application will be busy for that amount of time and cant do any work. So I want to make this copy process to be in background as a separate process without making the application to hang.
(Visual Studio 2010 Ultimate)

View 2 Replies

How To Make VB Take Files In The Build Process

Apr 25, 2009

I made an application that uses text files from a folder and i included that folder's path in the code, How can I make the VB take these files with the .exe file and make it work probably?

View 4 Replies

Using Process.Start On Remote Files

Jan 26, 2009

I have created an aplication that opens pdf files for different GPRS settings of various phones. These pdf files are stored on a remote computer(central machine). I am having problems using the process.start . This is the code that i am using for my search button:

Dim process as new process

process.start(("\\192.168.2.78\C:\Documents and Settings\phamanda\My Documents\Gprs\Benq\") & ComboBox5.Text & ".pdf")

Does process.start recognise IP adresses

View 1 Replies

Sending Email To Multiple Recipients Via Process.Start?

Mar 29, 2009

I'm attempting to send an email to multiple recipients, via the System.Diagnostics.Process.Start() command. The string I'm using looks like this...

System.Diagnostics.Process.Start("mailto:Test1 <test@nowhere.atall>; Test2 <test2@nowhere.atall>;")

The first email shows up correctly in my email program (Windows Mail in this case), but the second email does not show up. If I get rid of the brackets that separate the email from the recipient name (getting rid of the recipient name from the string), then both email addresses will load without problems. It's only when the brackets are included that the problem occurs. I've tracked the specific problem spot to the closing bracket on the first email name. For some reason, everything that follows the closing bracket is ignored.

View 3 Replies

Wpf - .Net Launching Multiple Command Line Through Process.Startinfo?

May 6, 2011

I'm using VB.Net to launch multiple command line window (same exe file) through Process.StartInfo. I would like to have those windows running at background without hanging main UI thread that launch them and at the same time able to get the output of those external window to show progress at progress bar.Here is a summary of what I'm trying to achieve but need further advise which way is feasible

- launch multiple exe command through Process.StartInfo

- don't want the external exe to hang my main UI thread

- need to get feedback from external exe to update progress bar which is placed at main UI thread

View 2 Replies

.net - Read And Process A List Of Text Files?

Dec 21, 2010

I'm completely new to .NET and am trying as a first step to write a text processing program. The task is simple: I have a list of 10,000 text files stored in one folder, and I'm trying to read each one, store it as a string variable, then run it through a series of functions, then save the final output to another folder. So far I can only manage to manually input the file path like this (in VB.NET):

[Code]...

I'm wondering, therefore, if there's a way to automate this process. Perhaps for example store all input file path into a text file then read each entry at a time, then save the final output into the save path, again listed in a text file.

View 4 Replies

Deleting Image Files Within A Directory (That Might Be Used By Another Process)

Aug 10, 2009

How can i delete image files (ex *.gif) that might be in use, by another process in a directory?

View 3 Replies

Possible To Call .exe Files With Shell() Or Process.Start()?

Aug 8, 2011

I have an issue in my project I am programming in both Matlab (Matlab2011a) and Visual Basic (VS2008).I've created a .exe file from my matlab code. It works well when I click on it with my mouse.But I need to run it within Visual Basic. I know it's possible to call .exe files with Shell() or Process.Start(), and it works well for files such as firefox.exe or notepad.exe. However, it doesn't work when I call my own .exe file ...It's weird because when I look to the Task Manager while trying to call it (within VB), I can see the process starting and ending, but its output doesn't appear.

View 5 Replies

Continous Processing - Process 1 By 1 Files Correctly Without Crashing

Dec 3, 2009

I need to watch onr folder using filesystemwatcher when a file is come in i have to send the file to websservice and recive processed file i done this. my question is if at the time 20 or 30 files come in how to do this 1 by 1 the webservice takes time to process its depends on the file size. so how to process 1 by 1 files correctly without crashing.

View 3 Replies

Loop Statement - IF Process Is NOT Running - Delete The Files

Aug 12, 2010

I am currently teaching myself the caveman code of Visual Basic (VB.net). Apparently I fail at If-statements or something, because I cannot get this to work...

[Code]...

View 9 Replies

Process Array Check - Encrypt/decrypt .dat Files?

Jan 12, 2009

Lets get down to it, Basically, I'm making a kind of "Anti-Hack" for a project I'm working on.The basis of the "Anti-Hack" is the check processes for names of known Memory Editors, For example, one memory editor I am scanning for is Cheat Engine.exe, I am using this code to scan for it, then I use the result to activate a different piece of code.

If Process.GetProcessesByName("Cheat Engine").Length = 0 The
'It's OK
Else
<Removed for obvious reasons>
End If

Basically, I don't want my code to look like a library of If statements when the only thing I am changing is the process name, what I want to do, is have an encrypted .dat file with an array or list of known tools. I want to then go through the array/list and keep checking for instances of them running.I know nothing of how to encrypt/decrypt .dat files through VB. (I'm not an expert at it atm )I am open to other ways (Easier ways) of doing this, like a Class with a list of names etc.

**NOTE** I would rather it be a separate file as the program features an Auto-Update feature, so it will be easier to update the list.

**IMPORTANT**Also, I would like to know how to hide my process, so it cant simply be ended, It may sound suspicious but people will be able to just close it and start hacking T_T, Unless there is another way, I would appreciate it (Like making it so it cant be ended etc.)**IMPORTANT.

View 3 Replies

Process.start (wzunzip) Hangs After Processing 72 Files?

Jan 30, 2010

Using windows xp. Sp3. over 100GB free on each disk that I use,Attempting to unzip a file that has directories in it. I want all files in the zip file to go to one directory ignoring the dir structure.I'm using VB to do this. Problem is that the process hangs at the same place on 2 different machines. Any ideas. Code below in vb and the results.Executing the same command line from DOS works correctly.unzips 72 files then hangs.

Code

newProc.StartInfo.UseShellExecute = False
newProc.StartInfo.CreateNoWindow = True

[code]....

Here's where it stops. And shows the dir struct of the zip file NDDF Plus DB. i've got a screen shot of the dir structure and files. basically it unzips the files in order of the dir structure and stops above.

View 3 Replies

VS 2008 : Process.StartInfo.Arguments With A Collection Of Files?

Sep 19, 2009

I need to pass a file's name as an argument and a switch to the executable I'm using.I'm doing it like this:

vb.net
proc.StartInfo.Arguments = "-z ""C: est.txt"""

I'll know where the files are that I need to grab, but I won't always know the exact names. So, I thought I could grab a collection of the files, store them in a variable, and then pass them as an argument.I tested it with one file like this:

vb.net
Dim File As New System.IO.FileInfo("C:...Desktop est.txt") Dim proc As New Process proc.StartInfo.WorkingDirectory = "..." proc.StartInfo.FileName = "....exe" proc.StartInfo.Arguments = "-z" & File & "additional arugments" proc.Start() proc.WaitForExit()

But, as you all may already know, I can't use the & operator with a string and FileInfo.Would I have to then convert the FileInfo to a string first and then pass it through?

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved