Create A Program In VB That Let Me Know Who Is Using A Specific File?

May 21, 2009

I want to create a program in vb .net that let me know who is using a specific file? Because I often update an .exe file but if it's in use I can't overwrite it. So if I know who is using the .exe I can call him to tell him o close the app.

View 1 Replies


ADVERTISEMENT

Make A Program That Searches For A Specific File In A Specific File?

Jan 14, 2009

i'm trying to make a program that searches for a specific file in a specific file, so when the program loads it "writes" in checked list box the names of the drives installed to the computer, but what i want to do is: when the user checks the box, i want it to search for the file in that drive, but i don't know how to do it...

I'm using:

Imports System.IO
Imports System.Collections.ObjectModel
Public Class Form1

[Code].....

how to make it search in the other drives using the checked listbox?

View 8 Replies

Create A Program For Parental Control That Block Specific Websites?

Jun 12, 2011

I have used VB6 years ago. Few days ago I just got started again with VB 2010. So I'm newbie again, Almost forgot everything. I want to create a program for parental control that block specific websites.

What I exactly want to do is The code should check the titles of the open windows and see if it is blocked one. If it is, it will close the browser with a message showing it's blocked. For example If I put "yahoo" to check and someone opens yahoo.com it should be terminated.What I have done so far is, I made DOS batch file that will terminate all the browsers that are open and set that ready to run when the title matches blocked site name/address.But I am stuck at how I can check the titles of the window that are open.

[Code]...

View 3 Replies

Open Specific .pdf File From A Whole Range Of File Located In Program

Oct 8, 2009

im having trouble opening adobe from my coding, also is my file ok or do i need to call from its folder location within the program.i need to be able to open a specific .pdf file from a whole range of file located in the program.what im getting the user to do is press 1 of about 14 buttons to select a brand. then in textbox1,enter the first part of the file name so in this case a274 (adobe runs in .pdf format so the file would be a274.pdf).at the moment i get a win32 error high lighting startinfo as the problem so im thinking its the adobe.exe is the problem. [code]

View 9 Replies

How To Create And Save Thumbnail For Specific File

Jul 27, 2009

Is there anyway to save a thumbnail of an image, then save it so that, when viewed through My Computer, the thumbnail is displayed for the file. Basically, what I mean is to do something similar to the way you can see a preview of a pdf file, or Microsoft Word file, or Microsoft Expression Design file. I want to be able to open the file's containing folder, then switch to thumbnail view, and the thumbnail will be displayed as the image for the file.

View 5 Replies

Open A File With Specific Program?

Jun 9, 2010

I have an embedded EXE file, that my program extracts. I want to open a specific file with this program. How do I do this?

BTW: If you want to extract an embedded resource in one line, here it is: My.Computer.FileSystem.WriteAllBytes(PathToExtract,ResourceFile, PutFalseIfYouWantToOverwrite)

View 16 Replies

Launch A Program With Specific File Using Shell?

Jun 22, 2010

Whenever I use this code, I get a File Not Found exception, even though the file paths are all correct. [code]...

View 3 Replies

Play Specific Portion Of A Video File Using Windows Media Player Control In Program?

Sep 18, 2009

I'm using the windows media player (wmp.dll) in vb.net 2008 and would like to know if it's possible to play a specific portion of the video. For example, I would like to start to play the video X minutes from the start and for Y amount of time.

View 1 Replies

VS 2008 File Handling - Create A '.txt' File And Then Fill In The Dates And Times When The Program Is Opened

Oct 25, 2009

I want my program to be able to create a '.txt' file when it is run for the first time, with the date and time the program was accessed, and to be able to add new 'logs' of program history every time it is accessed. What i mean is that i want my program to be able to create a '.txt' file, and then fill in the dates and times when the program is opened.

View 7 Replies

VS 2008 Finding A Specific Row And Specific Columns In Data Base File (Access)?

Jul 24, 2011

I wonder if it is possible to find a specific row and specific columns in data base file (Access) . You see , I am using a DataGridView control to show only SOME of the columns (fields) of a table from an Access file . For example , lets say that in the DataGridView control I only show the following fields :Field1 , Field2 and Field3 .Now , when the user selects an entry in the DataGridView control , I want to insert the text from Field4 into a text box on the form .

The problem , however , is that I don't know how to get the specific row in the data base file and also I don't know how to get the text in column (field) Field4 of that row .One thing that might be important is that the index of the row in the data base file is not necessarily the same with the index of the current row in the DataGridView control . This is because in the DataGridView control the rows are order by the contents in the ID Field .ol .

View 2 Replies

Create A Dll File In Program?

Dec 28, 2009

How to create a dll file using Visual Basic.net ? I'm using MS Visual Studio 2008.

View 9 Replies

Create A Pdf File Using Program?

Feb 19, 2009

I wanted to create a pdf file and write some repots in that using vb.net. This shld be created on click of a button. i have adobe reader in my machine. Is that enough to create a pdf file using vb.net? please help how to do this programming.

View 2 Replies

Create Exe File With Program?

Oct 25, 2009

In VB6, my program simply compile to a nice simple .exe file.

However, with vb.net there are things like whatever.vshost.exe, for example.

Then there is AxInterop.MSWinsockLib.dll and so on. Should I upload that into the directory of my customer?

View 3 Replies

Count Occurance Of A Specific Number & Specific String In Text File Using Vb8?

Dec 13, 2010

i am a beginner in vb8 i have a text file named alarm.txt,sample alarm.txt file is shown below

can someone help me to read the alarm.txt file and extract data.for eg

[Code]...

View 1 Replies

Create A File Association In Program?

Nov 23, 2009

I am trying to create a file association in my program, which requires me to create some keys in the registry. However, when I try to create the keys, I get a System.UnauthorizedAccessException.

I have tried searching for a solution, and the only thing I can find is various examples of passing a boolean value to request write access for the "OpenSubKey" method. My problem currently is not opening the key, it's creating it. I have tried several of the different overloads to no avail.

I am guessing that I will need to temporarily elevate the access of my app to create the registry key. What I don't want to do is permanently raise the access of my app just to accomodate this one, small function, which should only really be needed by the user one time in order to create the file association.

Here is my code in progress:

Private Sub chkSOPAssociation_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkSOPAssociation.Click
If chkSOPAssociation.Checked = True Then

[Code]....

I have a checkbox on my form. When the user clicks it, it sets the file association if the checkbox is checked, or else it deletes the association if the checkbox is unchecked.

View 3 Replies

Create A Program That Creates An .EXE File?

Aug 6, 2009

I was thinking about creating a program that creates an .exe file. (I know that that is very difficult but I have 3 days that I'm not sleeping because i'm thinkin about it)The program should create the .exe file on button clickThe created exe should be in Normal Windows State, it should have only a button that doesn't do anything and it's path should be C:UsersAdministratorDesktop

View 4 Replies

Create File Associations In Program?

Jul 28, 2010

How would one go about associating a file type with his application? I know how to read the command line arguments but I am not sure how I can "register" the file extension with Windows. Furthermore, my application is a stand-alone executable, so how would I keep Windows up-to-date on the location of my program?

I did a fair amount of searching and all I could find were old articles that didn't explain everything. How can I create file associations to a stand-alone executable in VB.NET?

View 1 Replies

Create Own Project File In Program?

May 12, 2010

how to create a own project file in my program?

Like my filetype is "*.test" and if i open it with my program my listview and other things will load info.

View 11 Replies

Program With VB - System.IO.File.Create

Apr 23, 2011

I've made a program with visual basic and i want to get the textboxs text(textboxes 1-3) to go into the command : System.IO.File.Create("in here") I'v try the & method iand it dosent work

My code in the form is :

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim wholetext1 As String

[CODE]...............................

View 3 Replies

Create A Custom File Extenstion In Program?

Jul 16, 2010

I have been doing a lot of searching on the web and cant seem to find a clear way of creating a custom file extentsion. I know to associate the file extension to a certain program, but how do create a format for the custom file extension?

View 1 Replies

Create And Append Text To Txt File In Program?

Oct 23, 2009

I am trying to create a textfile if it doesn't exist or append text to it if exists in vb.net.

For some reason, though it is creating the text file I am getting error saying process cannot access file.

And when I run the program it is writing text but how can I make it write in new line.

Dim strFile As String = "C:ErrorLog_" & DateTime.Today.ToString("dd-MMM-yyyy") & ".txt"[code]...

View 5 Replies

Preview An Inf File Create With The Program - Code

Nov 22, 2009

Its suppose to preview an inf file i create with the program

Code:
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
If Not String.IsNullOrEmpty(TextBox1.Text) Then

[CODE]...

View 4 Replies

Program To Create A '.txt' File And Then Fill In Dates

Oct 25, 2009

I have been searching on the internet but couldn't find anything that would help me. I want my program to be able to create a '.txt' file when it is run for the first time, with the date and time the program was accessed, and to be able to add new 'logs' of program history every time it is accessed. What i mean is that i want my program to be able to create a '.txt' file, and then fill in the dates and times when the program is opened.

View 5 Replies

Create A Log File In Program Ad Fill It With Records Of Table?

Apr 24, 2009

I am woking on an application in which records of a table are stored in another table. In case of duplicate records they will not wriiten to the table and they should be written in a log file.

View 1 Replies

Create A Program Which Reads A Text File Into An Array?

May 10, 2009

I'm trying to create a program which reads a text file into an array.

[Code]...

But that's just silly so how can I fix this? Lines isn't being assigned a null value it's being assigned the first line of text in the file which has text in it so I'm confused.

View 5 Replies

Create A Structure File In Program In Windows Form?

Dec 12, 2011

Can i create a structure file in vb.net in windows form ?

View 2 Replies

Find A Specific File In A Specific Directory?

Feb 20, 2011

I am trying to find a specific file in a specific directory and then i need to get the full path of the file.Is this possible i cant find any help topics about a specific file.

View 5 Replies

Create A "File Not Found" Error To Display If A File The Program Is Looking For Is Not Created?

Oct 5, 2009

I'm trying to create a "File Not Found" error to display if a file the program is looking for is not created.Example:

Dim ProcessProperties As New ProcessStartInfo
ProcessProperties.FileName = "filename"
ProcessProperties.WindowStyle = ProcessWindowStyle.Hidden[code].....

I also need help creating a text box, that will submit information to another source (like echoing to a command prompt window). I'm trying to add a killtask option where the user can enter the name of the tast (such as notepad.exe) and press 'Submit'. The button will then send a code (killtask -f notepad.exe) to a command prompt window.

View 1 Replies

Cannot Create, Modify Text File Into Program Files Folder

Jul 22, 2011

I make an application and make setup file using VS setup project. This work fine and create default text files into Program Files Folder for winodw 7/vista .but can not modify these files or create any new files.There are few text files need to create ,modify during application running ,but in windows 7/vista unable to create,modify files.I am using full default admin right for these OS. If iuse C: root path then application work fine or for win XP no problem.I think UAC restricting to perform these opeartion. But i do not know how to change these restriction using vb.net, whenever application start.

View 5 Replies

How VB Can Focus A Specific Program And Then Send Commands To The Program Only

Aug 3, 2011

I am trying to figure out how VB can focus a specific program and then send commands to the program only. The focus would only be for the commands and would not make the program you are currently in lose focus. Simply, what it is controlling is a Windows Application called GOM Player. I use it to study my material for school. I plays movies in it and don�t have to click out of the application I am working in to pause, play or rewind. The keypad and the company who make it actually have it built into iTunes and it does exactly what I want GOM Player to do.

The reason I dont just use iTunes is because I can�t get my video files to play in iTunes. After pulling teeth with the manufacture I finally to tell me that the iTunes functionality is accessible via plugins built into iTunes. So trying to mimic what is being done there does not help. I believe that a knowledgeable VB programmer could answer my question in seconds, but having some experience with coding and programing I know it also could be a lot more than what I think. [URL]

The question is: What is way that VB can send the key for the macro only to the GOM Player Application even if it is not focused or even If it is minimized.

View 1 Replies







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