Loop Through An External File?

Jan 13, 2009

So, i made a post earlier on how to loop through an external file looking for another process that is running, i have successfully done this last night, and the only problem i have now, is the placing of this code so it works correctly, in the following format:

Dim HackApp As Process() = Process.GetProcessesByName(Cprog)
If Checker.ChkDone.Checked = True Then
Try

[Code]....

View 9 Replies


ADVERTISEMENT

Reference A Particular Code Routine In .net External To The Current Loop/routine?

Apr 17, 2011

is there any way to reference a particular code routine in VB.net external to the current loop/routine?Example:

If Var01 < 5
[Routine A]
Else
[Routine B]
End If

where Routine A and Routine B are code sequences at the end of the entire program -- such as outside of the current sub or class? The idea would be to reference an otherwise repetitive code.

View 4 Replies

Run An External Dll File/

Nov 27, 2009

I have a dll file which is reading a in.txt file and write a out.txt file. No need pass any variables to dll. Dll file runs alone.

I could not add this dll as referance. What I nned to do to just run this dll?

View 11 Replies

Run An External EXE File?

Dec 17, 2011

I'm creating an installer program. As part of the install process, I need to run/install the "AccessRuntime.exe" file.

How do I run this external EXE file from within my installer program?

View 6 Replies

Add External Dependencies .lib File?

Mar 11, 2012

how to add External dependencies .lib file in vb.net

View 2 Replies

Any Way To Unzip File Without External DLL?

Oct 4, 2009

Is it possible to unzip a file without having to use an external (not .NET default) resource?

View 1 Replies

External .exe File Input?

Jun 28, 2010

I am quite new to programming so please bear with me if I am asking stupid questions. I have searched the forums but couldn't find a (comprehensible) answer.I am calling an external .exe file from VB, I do this with Shell.The external .exe opens a command window and asks for a file name. I am trying to make vb to input a file name into the command window but I m not sure how. The SendKeys command doesn't seem to work.

View 18 Replies

How To Get File Version From External EXE

Oct 4, 2011

How to get FileVersion from external exe in VB.net?

View 1 Replies

Running External File In Vb8?

Aug 25, 2011

Well i have developed VB code in which i want to call an external application.I know this can be done using shell command i.e.

" shell("C:\abc.exe") ". But when i execute this statement the file actually runs.This is not what i am looking for, I am looking for a piece of code which ensures that the file can run successfully without executing it

View 4 Replies

Extension In External DLL File Isn't Seen In Project?

Jun 19, 2009

I have a simple extension which makes all chars in incoming string uppercase. I created this extension as DLL file (with namespace "Extensions"). But when I make reference to this DLL, then this namespace doesn't appear in Imports, hence I can't use my extension. Here's question: why I can't put extension into separate assembly?

View 2 Replies

External File Will Not Recognize Its Own Location

Jan 10, 2012

I have written an vb.net application, named vbapp.exe. And I would like to use vbapp.exe to shell an external .exe file and this external .exe will create a file in the folder in which the external .exe file is located.However, the external .exe file will not recognize its own folder, on the contrary, it will think that its own folder is where the vb application, vbapp.exe, is located.

View 5 Replies

Get Special Details Of External .EXE File?

Feb 7, 2009

How can I grab details of an external EXE file? Like the CompanyName, the ProductName, etc.I know how to do this with the application itself, but no an external application

View 3 Replies

Getting Values From External Config File?

Jan 3, 2012

i am building a web application with VS2010 and framework 4

in the web.config i have defined the external file path
<appSettings file="\serverc$InetpubwwwrootConnectionsGlobal_Settings.config">
<add key="var_1" value="xpto" />

[code].....

View 3 Replies

How To Drop Any File In External Application

Sep 6, 2011

From a VB.NET program i want to drop a file (c:example.txt) in an external application (Firefox). I found an example that construct a "databject" linking a file name. I also found programs on the side on the application that receive the drop. But not one that send to an external application.

View 7 Replies

Settings Load From External File?

Feb 26, 2012

I have a project need to reset the my.settings by external files, i have problem to get back the system.drawing.color

Frist I use the SaveConfigFromMySettingToFile() to get the config file,then i add the LoadConfigFromFileToMySetting() at the FormLoad action,But Nothing change! Why? without the LoadConfigFromFileToMySetting() at system load i got the correct color of the button from my.settings.

[Code]...

View 3 Replies

VS 2008 External File For ConnectionCommand?

May 26, 2010

Does anyone has some experience with calling a strings which includes the "Dim blabla As New MySQLCommand(SELECT *... etc." I'm not talking about the connectionstring itself, but the "SELECT" part. Really would like to know how to read it from an external file. I don't care what kind of file. (.text / .xml / ...)

View 2 Replies

VS 2010 Using External Data File?

Feb 21, 2012

I would like to include a text file for easy ediing of data that my app will read and pull data from. My external data file is a csv fileI want to display a checked list box that display this info and based on selections in the checked list box cand in a procedure later call commands based on those selections.

View 4 Replies

File I/O And Registry :: Use Of External File?

Dec 16, 2008

I have a .net program that you open, enter a bunch of information to control equipment,ovens, etc. After the user enters all of the information for the equipment/test, they run the test, data is taken, and they close the .net application.However, if they want to run this same test again, I don't want them to re-enter everything b/c it would be quite tedious. Instead, I would like to have a file > export and file > import option. I am going to import/export from excel.

I have set up a blank template in excel that has a lot of formatting and descriptions. My question is, where do I put this template file and how do I reference it? For example, do I save it in the project's inRelease folder? Then when the user goes to file > export, how do I refernce it as being in the inRelease folder? After making an installer package where does the template file get placed on the install if its in the inRelease folder?

View 8 Replies

Call A Javascript Function From An External File?

Apr 20, 2012

I have a Javascript function in the js file (test.js) and I need to call her in visual basic 2010 enter her input parameter and load response javascript functions in visual basic.

View 2 Replies

C# - Include External File In XBAP Application?

Nov 4, 2011

How can i include an external file in a XBAP application? For example a .dat file where i need to extract some data from? I want everything to happen inside the .xbap file, is that possible?

View 1 Replies

How To Put Application Settings In An External App.config File Using V

Mar 10, 2009

I have been searching and posting regarding this problem and have found nothing to aid me. Discussion is either on web.config files or deal only with external files for connection strings or earlier versions of vb.net not 2008.I have already successfully put connection strings into an external config file, but trying the same approach with application settings has failed.There are two sections of the app.config involved with application settings.

1. the configuration and config sections at the top of the config. file where the section group and the section name are described.

2. the actually data for the application settings by section group section name which appears in the body of the configuraton section of the app.config.[code]

View 5 Replies

Read 2 Connection Strings From External File?

Sep 9, 2011

I have a situation where I have a vb.net program that uses two connection strings. This program will be used on multiple web servers on multiple domains and the only difference for any of them is the two connection strings.What would be the best solution to read in these connection strings from a file separate from my actual .vb code?

Ideally I want to be able to drop the .vb and the connection string file into its own folder on any number of asp.net websites and not update anything else (for example add any connections to the web.config or anything) than the external file containing the connection strings, I assume something like xml would suffice?

View 2 Replies

Reading A Text File With An External Application?

Jul 22, 2009

I have this application that I need to read a text file.

I have designed a form which has a play button and when the play button is called it is supposed to read a text file which has being created using an external application..

I wrote a code that calls the application but I dont know how to pass the text file into the application.

I also dont want the application popping up.

line of code that calls the application ---- Process.Start("C:Program FilesDECtalkUSsay.exe")

View 3 Replies

Reference To External File Included In Project

Jun 9, 2010

When you add a file that the project will use (in my case an Excel file) and set it to be copied to the output directory, you can of course add a string to a class with the file name in it to use the file. I was wondering though does Visual Studio automatically generate a member somewhere that contains the name of the file? Perhaps in the My Namespace?

Kind of like how when you set the Build Action to Resource, Visual Studio generates a member in the My.Resources namespace for reference. Whenever I change the name of the file in the Solution Explorer it would be nice if I had some method that would automatically update the file name in the code.

View 9 Replies

Setting BackColor Property With External File?

Nov 9, 2011

I'm reading in a configuration file which is simply a txt file that configures my Com port and sets some directories. It's basically for the end user to set the interface. I want to give the user the ability to change backcolor properties on my NumbericUpDown property. So when I read in the Config.txt file the end user can change coloring on the General Form. In this case the NumbericUpDown. How to assign a variable for color from my string (from my txt file) that I read in.

View 5 Replies

Starting And Ending External *.exe File With VB2005

Nov 30, 2011

I found out that I can start any external executable using:

[Code]...

View 4 Replies

Storing Application Variables In An External File?

Jul 8, 2009

I have been tasked to create an application, for which the requirements may change over time.This application will be a data entry Windows application,of which multiple copies will be running.All data will be written to text (.CSV) files for validation before being uploaded to a remote mainframe system (iSeries).My application needs to store certain variable information in an external text (or XML) file; for example, the file path to shared resources (which may change over time),as well as the specific data fields required by the mainframe system.

My questionsare these: what is considered the best practice for accomplishing such a task, and how would I accomplish it?I am completely new to XML, so I don't even know where to begin, although I am sure that XML is the path to follow for what I am trying to accomplish.

View 1 Replies

Use An External Resources File Where All The Icons Is Stored

Jan 22, 2011

The thing is im making formless application, thats visible in tray only.. But i have like 21 icons for default functions.. and when my program launches all icons with the exe file is loaded in RAM. Is there a way to use an external resources file, where all the icons is stored, so when application needs one it takes it from rscx file and loads it, and when it needs other icon it releases the one taken and takes other.. Im asking this not just for ico files, but for any file types that can be stored in my.resources..

View 3 Replies

VS 2008 Open External PDF File From Application?

Mar 22, 2010

I have a pdf that I want to be able to open when a button is clicked within the application that I have built in Visual Studio 2008 in .Net.

View 2 Replies

VS 2010 - Compile All Files Into One External File

Jan 24, 2010

how to compile other files into an external file, where they can be accessed by the simple "application.startuppath" code. I got all the files i need, the .dlls, my .exe, and my resources, but the tut's i have been finding havn't been working for me. [URL] tried that with a few adjustments after it didn't work twice, and still no luck.

View 12 Replies







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