Delete A Hidden File?
Jan 1, 2009"Thumbs.db" is a hidden file.. how can i delete in a folder together with the files are not hidden?
View 9 Replies"Thumbs.db" is a hidden file.. how can i delete in a folder together with the files are not hidden?
View 9 RepliesHow can be find out which file is going to delete when, user provides command like DELETE or SHIFT + DELETE or by programmatically gives DELETE command. Well I know about FileSystemWatcher Class, but this class doesn't provide information before delete...
View 1 RepliesI want to make 5 attachment options in that 4 out of the 5 are hidden.but when he clicks "more attachment" link it will show the other 4.Im using ASP.NET with VB?
View 2 Replieshow would i got about executing another file from my application with hidden attributes so its not visible?
View 5 Replieswell i tried to make this vb code execute another app *hidden*(as in window not visible) and it didnt work because the window is still fully visible.. i dont know why, i think its just because of this particular kind of exe or something..
is there another way to really execute this file hidden? i dont know how to do it but i heard about mabye threading it or making it a windows service? will that solve this?
[Code]...
How can I copy file and make it hidden .... I want to make file when the user click on create I want to copy file and make it hidden ....
View 2 RepliesI have an application that will execute a batch script. I want to make this hidden, yet if I do so, the user won't be able to overwrite the command the Batch file is issuing as it prompts in the CMD window "Y or N" to overwrite.
View 1 Repliescreate an app that can modify file attribute like hidden, archive, read-only.
View 3 RepliesI am uploading Excel File and below is my code. I have no problems so far with filling my dataset but when I tried to validate required fields, I get the error that some values are missing. I checked the Excel files and noticed that there are hidden rows that the user was not able to checked when he's adding values.[code]...
View 2 RepliesHow To Properly Delete A File Using File.Delete()
View 5 RepliesI want to create a file removal which revieve directory files to delete from a text file..[code]
View 2 Repliesi am working on an application called logonscreenchangerxp i made my program and when i run it on xp virtualmachine i get errors the program is made using vb 2008 and using .net framework 2.0 i am not able to get full permissions to modify boot.ini file and a regisrty value and to delete a file
View 5 RepliesBelow is my code for DELETE button. What i want is if the user select the transaction from the listview and press the DELETE button it must be able to delete the transaction from listview and text file(temporary log file) which i keep all the transaction record. At the same time the list view must able show the total current balance from the deleted trnsaction.
[Code]...
i am very new to VB. I am working on file operation such as show files, copy file, delete file, show current directory, rename folder, make folder. My problem right now is with delete and copy file. I have a method of delete and copy but i dont know how to pass this method on a button.
[Code]...
I am trying to code a delete button for a browsing program based on data from a txt file. I have coded the buttons to sort(ascending and descending), append to the text file, search the text file, but I can not seem to get the delete function working. I am using VB 2010, this is what I have so far:
Code:
Dim deleline As String
Dim line As String
Dim isFound As Boolean = False
sr4 = IO.File.OpenText("Students.txt")
[code]....
[VB 2008 express edition] i am doing a application data grid view bound data from MS access (.mdb) as my dataset. the dataset have 5 tables, each table consist of ID, Items, Rates, And Amount, i face some problem here:
a) cannot delete row from the table, (using binding navigator but error)
b) how can make a opendialog to load the .mdb file dataset table in to the datagridview?
c) how do i save table in the datagridview into the MS Access file ?
I try to rename a file by
file.copy(oldPathName, newPathName)
then
file.delete(oldPathName)
File.copy works.But somehow, a message saying oldPathName is being used by another process, when it tries to delete the old file.
I have Project i need to recovery file System . And some information who Create that file , deleting , replace , Modifying . I need also return any file delete or replace .
View 2 RepliesI encountered the error:The process cannot access the file <full file path> because it is being used by another process.during System.IO.File.Delete(filename)I have opened the file using:pctPhoto.Image = Image.FromFile(filename)before I delete the file.
View 8 Repliesi know how to do it but is this even possible in vb. get a textbox and a button.write a file path to something you want to dlete in the text box then press the button and the button deletes the object the file path has specified.and you
View 2 RepliesI have a project where you type something then it looks through a text file for what you typed. I would then like to make a way to edit the text file once I find what I'm looking for. So, how do you delete text from a .txt file that you are searching through? Also, how do you re-write in that place you just deleted the text from?
View 3 RepliesWhat I want, is for my text file to be read into the array named "CFiles()". Then once this is complete to delete the file But I get the error, The process cannot access the file 'C:UsersAndrewDesktopNew.txt' because it is being used by another process. On 3rd to last line. My code is below:
[Code]...
What I want, is for my text file to be read into the array named "CFiles()". Then once this is complete to delete the fileButI get the error, The process cannot access the file 'C:\Users\Andrew\Desktop\New.txt' because it is being used by another process. On 3rd to last line.My code is below:
Public Class Form1
Dim File As String = "C:\Users\Andrew\Desktop\New.txt"
Dim CFiles() As String
[code].....
I was wondering how I could delete a file that is currently in use. Well, basically the app that i'm making is an app that detects what files you download. if it detects a certain app, it trys to delete it so you can't click the 'Run' button with-in IE. But, when I try to delete it, I get the 'File is currently in-use' -exception. How could I do this? So if they download aim6.exe and my app doesn't allow it, it will delete it from the temp files so when they click run, all they get is an error like, 'Not a valid Win32 application' ...or something
View 2 RepliesI have the following XML file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Details>
<mySettings>
[Code]....
but I need the code to Add to the XML (not editing as i ready have that) and also need how to delete it from the database.
This is my first time using vb.net as im used to using vb6.0.
What i have is a file in resources which i write to the application start-up location. Then when i want it to close the file has to delete.
This file is a requirement for it to work (it is a reference). It is the #ZipLib dll file.
[code]...
I'm having a problem deleting a file. I load a TEMPORARY image in a form, show the user the image. They close the form and I attempt to delete the image but get the error that it can not be deleted because it is in use by another process. [code]...
View 4 Repliesim creating a csv file from sql querry, after that im sending this csv file with email, after i sent the mail i wanna delete the csv file but it says 'its using by another....this is my export csv function
Function ExportCsv() Dim filePath As String = "C:FULLWorkcsvlimit_dosya.csv" Dim delimiter As String = ";" Dim sb As New StringBuilder() For i As Integer = 0 To DataGridView1.Rows.Count - 1 Dim array As String() = New String(DataGridView1.Columns.Count - 1) {} If i.Equals(0) Then For j As Integer = 0 To DataGridView1.Columns.Count -
[code]....
I have 2 apps:
Main app
Updater
The Main app checks if it's the right version with a webservice. If it's not, it will start the updater.
The updater will check if the main app is still running. If it is, it kills the process. After that it overwrites all the files in the main app folder with new ones.
The problem is, when the main app is using a file and it's killed by the updater. The file that the main app was using isn't cleared at once, this apparantly takes some time.
So when the updater wants to overwrite the file, the file is still in use. I could keep the updater waiting for a minute after it kills the process but this is of course quite error prone.
Is it possible to ignore the file in use thing and overwrite it anyway?
How do you delete a file even if it's in use?
View 1 Replies