Find Out Who Is Accessing The File?
Mar 17, 2009
i am doing some applicaition.i have browse dialog control in my form.my file in is network. so when i browse my file in the network, at the same time anybody using the file i would like to get the computer name who is using this file currently.
View 1 Replies
ADVERTISEMENT
Oct 24, 2010
how to search xml file and display the result in list box.then export a xml file to excel in the search result
View 4 Replies
Mar 10, 2009
I've been stuck on this for 3 days now.I have a TiffBitmapDecoder accessing a file and generating a BitmapSource from one of the frames in the file. If I try and modify the file after that e.g. insert new frame or even delete file, I'm informed that the file cannot be accessed as another process is accessing the file.How do I either a) Get the TiffBitmapDecoder to release the file or B) force all processes that have access to a file to release?Note: I'm using WPF and the TiffBitmapDecoder does not have standard fileStream methods like close, dispose or flush.
View 9 Replies
Jul 27, 2011
I have a windows service on a server which accesses a folder and database which is on different server.i was told to create an .ini file and add the settings here. so i have to add the path to the folder and database in .ini file, correct?is there anything else which i should add in .ini file?is it compulsory to give the [section] in the .ini file?
How can i access this .ini file from my vb.net program?can i store this .ini file anywhere on the machine or it should be stored in a particular folder?
View 7 Replies
Feb 11, 2010
I Am a new developer in VS 2008. I am writing a small program that reads an XML file. Here is a snipet of code.
filename =
"XMLPolicyList.xml"
Dim DR As XmlTextReader = Nothing
[code]....
My understaning is that the system looks for the file in the bin/debug folder, so that is where I put it. But when executing this program. I always get a FileNotFoundException. The file name displayed is (filename). If I hard code the entire directory name and file name I get the same error and the file name is displayed with the same slash in front of it. For instance I put the file on the C drive and the error displayed C:(filename).I don't have the problem in older versions of Visual Studio. The same program runs fine in VS 2003. I'm thinking that there must be some sort of setting within VS 2008, but I have been unable to find it.
View 5 Replies
Oct 29, 2011
It's all fine, accessing files and directories by using a dynamic link library (DLL), but is it possible to do online?Suppose I want to parse a file, which would normally be simple in visual basic; is it possible to call functions from a DLL using a server-side language, say PHP?
View 1 Replies
Feb 12, 2010
I've been able to find a lot of examples for C#, however I'm not any where near proficient enough to write what I need to in C# What I need to do is access the pst file and read the new messages that are being received.I'll worry about the rest later, for now if someone can point me in the right direction
View 3 Replies
Dec 8, 2009
Am trying to read in data from an xml file but using javascript which is embedded into my asp.net|vb code. I am new to asp.net but coming from a programming background
View 1 Replies
Aug 23, 2010
I'm running VB2005 and have an application where an operator can save a snapshot of an image in a picturebox as a jpg. They can call up any jpg they want and display it in another picturebox. The issue is that if there is an existing file and the operator loads it into the 2nd picturebox, the operator isn't able to overwrite this image file from whatever is in the 1st picturebox.
[Code]...
View 5 Replies
Jun 26, 2010
Is there any way of accessing a file on a partition that has no drive letter (such as a hidden or recovery partition)?
View 1 Replies
Aug 23, 2010
When you right-click on a file and select the property information for that file, in the Summary tab, there is a listing of various properties for that file.(Title, Category, etc)Is there a way to access that particular property data from Visual Basic?I'm specifically interested in trying to access the Revision Number property of a given file.
View 2 Replies
Mar 7, 2011
I have an external project (DLL) that I have referenced in my project. One of the requirements of using that DLL is to include an XML file in the same directory as the DLL. Now I know in a production environment I could just add that DLL to the GAC and place the XML file in that same folder. However, that doesn't help me when I'm trying to debug it. I have tried including it into the BIN directory but it never gets moved to the Temp directory when compiled.
[Code]...
View 2 Replies
Sep 11, 2009
I was wondering if there is any way to manipulate layers of a psd from within a VB program. I would Ideally like to inserts just the psd file in and then once a command is clicked turn one of the layers on or off.
I know I can accomplish this inserting a jpg/gif for each layer and have that image be turned on or off by a button click, but I figured using the psd would save room and if something needs to be aligned differently I can just make a change in photoshop. Opposed to trying to realign the coordinates in VB
View 1 Replies
Apr 21, 2011
I have added a txt file to my project, how to access it.
This is what I thought it would be, but it is not correct,
Dim reader As StreamReader = New StreamReader(Me.Airports.Txt)
View 2 Replies
Apr 9, 2012
I have been struggling with this but to no avail. But I know I have to get this done. So have come here. I am making a new ASP.NET 'web application project'. I am using VB. The actual task is to access a couple of values from a remote ftp server and store them in variables. But there are a few concerns:
[Code]....
View 6 Replies
Apr 9, 2010
I have a problem with accessing a data file from Access database. Data Source configuration Wizard comes back with a dialoge box saying "Error Message: Could not load type 'Microsoft Visual Studio.DataDesign.SynDesigner.SyncFacade.SyncManger' from assembly
'MicrosoftVisualStudio.DataDesign.SynDesigner.DslPackage,version = 9.0.0.0, Culture = netural,PublicKeyToken=b03f5f7f11d50a3a
My computer is a Vista and it have known to have lots of problem, but not sure if this is one of it.
View 4 Replies
Feb 11, 2010
I am using dotnet frame work 3.5. I need to access a file and reads the file which resides in a common path outside the application.
View 1 Replies
Dec 4, 2009
I'm having trouble accessing the connection string from the app.config file. my connection string is:
Dim sConnect As String = "Data Source=.SQLEXPRESS;AttachDbFilename=G:VB Level 1ProjectContactsDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
I using this string in a few different places, but I want to access it from the App.Config file. I've been at it for awhile and can't get it working.
View 3 Replies
Nov 2, 2010
I have an FTP Server outside of the domain (In a workgroup). I need to move files using an application called by the FTP client on the FTP server to a share within the domain using VB.net:
(System.IO.File.Move(SourcePath & Filename, TargetPath & Filename))Impersonation will not work neither will mapping a drive (As no user will be logged on)This is a console application that takes the above parameters.
View 1 Replies
Dec 24, 2011
I am trying to display an image from a Virtual Directory that is within my website. If I use the follwoing code the image is displayed on the on the Page:
Dim sourcefile As String = Server.MapPath("~/Common/Images/Flag.jpg")
Response.WriteFile(sourcefile)
Response.ContentType = "image/jpg"
But if I try displaying the image in an Image control useing the following code the image isn't displayed:
Dim sourcefile As String = Server.MapPath("~/Common/Images/Flag.jpg")
Image1.ImageUrl = sourcefile
Here is the HTML/ASP code:
<div id="contentQE">
<fieldset>
<span class="graytitle">The Flag Image
[code]....
View 3 Replies
Jul 5, 2011
Im am trying to get two separate applications to communicate with one another via a txt file. The first application writes to a txt file every even second and the second application reads the text file every odd second. The problem is Im getting an exception saying The process cannot access the file FILE_PATH.txt' because it is being used by another process. Not sure if my code is correct or not? Or if there is a better way to do this?
[Code]...
View 7 Replies
Oct 31, 2008
I developed a custom help system for my ACCESS 2007 application using Help Workshop. I wish to open this .chm file by a command button on a form but does anyone know how to do that?
View 9 Replies
Mar 1, 2011
(First off all hi to everyone my first post!) Ok, i have two programs one program writes to a text file on a consistent basis, while the second program is opening this text file on a consistent basis for reading.. Sometimes the programs are accessing the file at the same time and the user keeps getting this error : this process cannot access the file because its already in use..
Is there any class, in system.io that i can use to modify the settings of this text file so both programs can access it at the same time?
View 2 Replies
Nov 20, 2009
For a project, I need to extract all the frames of an AVI video. This I have accomplished by with free program. The problem: it took a 30 second clip and spit back 5400 some frames, and the image only changes every 20 frames or so. I really only need about 270 frames, but I didn't want to go through each one manually. So, I wrote a small program using Visual Studio 2008 and VB to open each image in binary and compare it to the one before that. If there is a discrepancy of more than 55000 (to accommodate slight errors in capturing), it leaves the file be. If not, it deletes it.
After much troubleshooting, I got it all to work. I ran it on the directory containing the images, but when it finished, only the first image remained. I checked into it, and found that the FSO loop I have set up to loop through each file was pulling the files in apparently random order. It will give me the image "bg(01).bmp" and then immediately "bg(1362).bmp" and so on. And the order changes every run.
I tried setting up an array to generate a list of all the files and then sort them, so I could pull off the name of the file, then the next one, ect. but it took over 3 hours to finish processing the array, and then It was using a huge chunk of RAM.Is there some way to "force" vb to pull off files in alphabetical order? here is my, code, it belongs with a form. fPath is a global variable, simply pointing to the source directory.
[Code]...
View 2 Replies
Mar 11, 2009
I was writing a small test to verify loading and editing a bmp file with a process and MS Paint. If I load the file image into a picturebox before I run the process MS Paint reports a Sharing violation on the file during save. If I Leave the Picturebox empty MS paint allows the file to be saved.
Below is my snippet. I assumed setting the picturebox image to something else would fix the problem. I does not. Looks like something is still holding its finger on the file.
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Remark the line below out and there is no violation.
PictureBox1.Image = Image.FromFile("C:Tom.bmp")
End Sub
[CODE]...
View 1 Replies
Jul 16, 2010
I need to access a file path, but a part of the path is different on each PC. Mozilla creates a random profile name for each PC it is installed on. I can get most of the path through environment variables. I need to access the files inside of the default profile, but can't since I'm not sure how to access it.
Here's an example of the file path:
'C:Users\%USERPROFILE%AppDataRoamingMozillaFirefoxProfilesxxxxxxxx.default'
The only thing that stays the same with the profile name, is the '.default' part.
View 4 Replies
Aug 27, 2009
How to use Folder Monitor (or something else) to get the username along with folder activity?
View 1 Replies
Jul 15, 2011
I have written a program in VB 2010 that dumps documentation info into an Excel file. Basically, the Excel file is a log file that keeps track of revisions for design drawings at an engineering firm.
There are approximately 20 people that have access to this program. However, I've run into issues where multiple users may be using the program and trying to send info to the Excel file at the same time. The Excel file is set to read only. My program opens the file with write access, and dumps the info into the appropriate cells, then closes the file. If one person is in the process of using the program, it causes an error with another persons system if they try to use it at the same time.
In some cases, it causes my program to crash, and it leaves the Excel file open on someones system.
Typically, my program would only have the Excel file open for a couple seconds. So, the issues mentioned above are rare, but they do happen.
I'm looking for ideas to prevent this issue from occuring.
View 7 Replies
Oct 31, 2009
I'm trying to upload a file via FTP from my local computer to an FTP server, which is also on my local computer at the moment. I've got this sub I'm calling:
Public Sub UploadFTPFile(ByVal ftpservername, ByVal fullfilepath, ByVal filename, ByVal username, ByVal password)Dim clsRequest As System.Net.FtpWebRequest = _
DirectCast(System.Net.WebRequest.Create("ftp://" & ftpservername & "/" & filename), System.Net.FtpWebRequest)
clsRequest.Credentials = New System.Net.NetworkCredential(username, password)
clsRequest.Method = System.Net.WebRequestMethods.Ftp.UploadFile
[Code]...
I'm running an FTP Server using Golder FTP Server, which is freeware. I think it's setup correctly because connecting to the FTP Server using the exact same string as above using Windows Explorer works great.
View 2 Replies
Apr 30, 2012
I'd like to create a new file everyday for a logging application to minimize size when accessing. I'm after a couple of pointers with respect to when to create the file, and what checks to do etc.
View 2 Replies