Determine Which Program Is Using A File In 2005?
Jun 1, 2009
Is there a way to get the program that is locking a file, in vb 2005?
For instance, when I try to open a file that is already opened by another program, can I get the name of the process/program that has locked this file?
View 1 Replies
ADVERTISEMENT
Jul 2, 2009
I'm trying to use Adobe's command line parameters to launch a PDF file with a user's search term passed in automatically. Unfortunately, Adobe's syntax for this command requires me to start Acrobat.exe (or AcroRdr32.exe) and pass in parameters, including the PDF file name.I have users that might have any version of Adobe Acrobat from 5.0 up, or they might be using Adobe Reader version 5.0 and up. I know when I double-click a PDF file, Windows has an association with that file that points to wherever Acrobat.exe (etc...) is installed to launch the program. How can I get access to that information?I've looked in the registry at"HKEY_CLASSES_ROOT.pdf", but don't see much in there that would lead me to "c:Program FilesAdobeAcrobat 8.0Acrobat.exe" or wherever the program is installed. Does anyone know how I can access this information?
View 4 Replies
May 14, 2009
I need to process a text file created by a Streamwriter. I have the Streamwriter object but the file location is determined by the user. The problem is, I need to process *the file* not the contents-so I need the location.
Steamwriter doesn't seem to have a Location or File property. Or am I just missing it? How can I tell what file a Streamwriter object is writing to?
View 7 Replies
Jun 13, 2009
Does anybody know of a way to determine the current name and link to the program on a computer currently as default associated with a file extension? For example, if you have a "*.jpg" file, it most likely will open in WINDOWS PICTURE GALLERY under Vista on default. If you associated another program with the "*.jpg" extension, then this file will be opened with tat program instead. "*.jpg" is here only an example!
View 3 Replies
Jun 24, 2010
When a user clicks on the add button I do this:-oledrTest = oledstest.tables(0).newrowOn the save I need to know whether they have clicked on the add button or the edit button. In the passed I have set a variable to 1 for add and 2 for edit and on the save if its a 1 I do oledstest.tables(0).add(oledrtest).
View 12 Replies
Mar 2, 2009
I'm making a program to detect polygon intersections, and it's all set up. I just need to know... how do you determine whether a region is of size zero?
View 2 Replies
Mar 19, 2009
How can i open chm file in VB.net 2005 ?
View 1 Replies
Feb 27, 2009
I have a form with several databound controls. Certain users will be able to change the data in these fields. Is there a way to check whether the data in any databound control has changed? I would like to do this so that I can enable an UPDATE button and flag a warning to the user that they must save their changes.
View 9 Replies
Sep 24, 2009
I just want to make sure if the UDP sent was received successfully, what could be some methods to do such? Its just for chatting on a local network.
View 14 Replies
Apr 13, 2011
Is there any way to determine how my application was closed. i.e. task manager, vs any standard close method. Actually my app is a dll that is used in an exe, so I really need to know how the exe program was shut down. Basically I am trying to write to a debug text file if the user has to shut down with task manager.
View 4 Replies
Feb 11, 2010
Is there a way to determine whether processes have been opened or closed during a given time frame? I'm working on code that will take an initial copy of your processes list, and then based on a timer, continue to take copies, which will compared to the initial processes list to determine which processes have been opened or closed until the timer ends. I'm capturing the processes list's in an Array list.
Dim processesList As String //Initial processes list
Dim processActivity As String //Opened or Closed processes
Dim processesAtStart As New ArrayList // Initial processes as ArrayList (To Compare)
Dim processesCheck As New ArrayList // Latest processes as ArrayList (To Compare)
[code]....
View 10 Replies
Mar 13, 2010
I have created an application which asks the user to enter password to login.Now how can i inform the user(if his caps button is on) that his caps button is on while he is entering his password?
View 3 Replies
Jun 13, 2012
I need to prove that a VB.NET program that I wrote was written at a particular time.
(the reason is an academic integrity investigation where someone copied my code).
I have all the code on my disk including the debug and release folders, with my username in the build paths.
Are their addition things I could do, such as looking in the binaries?
View 3 Replies
Nov 27, 2009
I have a small database program that gets data from csv file, I created a function that formats the font color of textboxes based on dates and values.
CODE:
I place this in text changed event and I have a problem implementing it, because the date conversion will not take place until the data is loaded. The second part works but not the first(Date) part.
I can create a button and use its click event to format the text boxes just fine, however i wanted the text boxes to be formatted on the fly . The problem is no matter where i call the function the date conversion wont work.
View 5 Replies
Jan 17, 2009
I'm trying to write a program that will open a solidworks file in EDrawings and print it and so far the only way I can find to do that with an edrawings ActiveX Control displayed on my form.Does anyone know if it's possible to print drawings via EDrawings 2009 without the ActiveX Control having to be displayed on the form as that is drastically slowing down my program?
View 5 Replies
Jan 18, 2009
i wanted to know if there is a way for the program to determine if its being run for the first time in a computer or in a different user.
View 1 Replies
Jun 6, 2011
I just need to be able to determine whether the OS the program is currently running on is either 32bit or 64bit.
View 5 Replies
Jan 25, 2010
I am trying to create a setup file which would automatically install a link to the executable in the User's Desktop and Startup--> Program. However despite following all the steps in the right order I do not see any short cut in the desktop and Start -> Program.
View 4 Replies
Oct 27, 2010
I have to show monthly paymen in label, make sure the user has entered an amount greater than 100, If user changes amount or rate or number of payments have label with answer cleared, When user Click on the text box have ente amount highlighted so user can type right over what was already written
I need to calcuate the button Also I need to be able to concatenate "Your monthly payment is (whatever the principal amount is) loan for(years) years at a rate of (whatever the %) is $ (whatever the monthlyPaymen)
[Code]...
View 2 Replies
Mar 15, 2010
I have numberic updown control in my app. There may be times when I want to programatically change the vlaue (in which case I don't want to ValueChanged event handler code to run). There will certainly be times when the user makes a change (in which case, I would want the event handler code to run).
[Code]...
View 5 Replies
Feb 7, 2012
I have created a vb.net program and released it to the customer. They are running the exe and at times the program crashes unexpectedly and display the message: "... has encountered a problem and needs to close" I know I should have added code to handle the exception, but is there a way that I can find out which line in the program caused the error? What is generally as good way to track errors in a program after it has been released?
View 1 Replies
Apr 8, 2011
I am just new here, i just want to ask if there are any of you who knows on how to determine if the record is flag or deleted in a dbf file. I am trying to make a program which can determine if the record is deleted or flag.
View 11 Replies
Feb 9, 2011
I am attempting to have my program select a file, create DataTables and then perform some other functions. I want to be able to open another file and re-do the same steps.The problem I am having is that I add columns to my Datatables and when I try and to open another file while one is already open I get a message that a column of xyz is already added how do I properly "clear my datatable" or perhaps that isnt even the correct approach? Here is the code I have that Opens a File
HTML
Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click
[code]....
This was working at one time but after adding to my project I must have placed something in the wrong place inadvertantly or it has soemthing to do with adding columns,?
View 4 Replies
Jan 8, 2011
I am having a problem with my program that is desinged to read a 3rd party text file database. I posted previosuly about a problem inserting an item in a new row and the column was expectig a different data type. It appears that sometimes the column is being determined to be of decimal value, I dont understand why. the fields contain information such as
Col1
F123456
CLW-12321 etc....
So my column fills with
123456
12321 the letters just get chopped off
So I added MaxScanRows = 0 to my schema file and that took care of the problem
Except now several of my columns that contain Date Values are coming back
9/24/2010 00:00:00
without the setting MaxScanRows = 0
The date returned 9/24/2010
Here is the code for my schema ini file I am creating:
HTML
Dim fs As New FileStream("Schema.ini", FileMode.Create, FileAccess.Write)
Dim writer As New StreamWriter(fs)
[CODE]............
I have been trying different settings hence the dimmed out lines
Here is the code to fill the datatable:
HTML
[CODE].............
I am thinking that without the MaxScanRows = 0 setting the datatype for Col1 is being incorrectly determined
I am not sure what is happening with other columns that contain date values. Apparently If i use MaxScan Rows=0 all columns are being pulled over as string value which creates numerous problems. If I dont use maxscanrows then all columns appear to be correct except Col21 MLSNUM which is being pulled in as a decimal. Can I change that in the schema file?
View 1 Replies
Apr 26, 2010
I wrote some code to share files throughout my network. The thing is that i don't understand how to determine how much the client has sent already and how much is left. I have posted my code below so you guys can see what I'm talking about.[code]...
View 1 Replies
Aug 9, 2010
I'm using the coding below to determin if a certain file exists on the hdd. However there is an error on this line: If FileExists("C:myfile.txt"))="False" then msgbox "False"
it gives me the following error message:End of statement expected.
what am I doing wrong?
[Code]...
View 1 Replies
Apr 28, 2012
I want to scan a directory and see what files are NOT bmp image files. As the file extension can lie I need to interrogate the file itself. I found some code here [url]...?ID=112 that does exactly this however it was written for VB5 and is 13 years out of date! I tried compiling it however VB 2010 baulked and I don't have the expertise to make it work.
View 1 Replies
Jun 13, 2011
When scanning a data file of this kind of form:
21/02/11 11:00:23, true, false
22/02/11 02:03:43 AM, true, false
22/03/11, false, false
2011-05-21T12:30:20, true, true
The 2nd and 3rd row are not important. How can you, by scanning a file, determine if a row comprises of dates, particularly when they have inconsistent formats? In the example above, for instance:
1) 1st line is date and time
2) 2nd line is date and time but also AM/PM
3) 3rd line is only date
4) 4th line is GMT format.
I'm not requesting code, but perhaps an algorithm or some guidelines on how to achieve this.
View 3 Replies
Jul 31, 2009
How can I programatically determine if a file with a certain extension (XLS, for example) is really an Excel file and not a VBS file, for example, that has the XLS extension?
View 1 Replies
Apr 16, 2012
I'm working on a project and need to determine the size of a text file. I know that I could just count characters but the file will be several MB's large.
View 1 Replies