Relative Content

Tag Archive for vb.netfile

only continuing process if target file is a pdf

hello all I’m making a process that will import a list of all the files in a given folder for processing.
hoever I only want the files to go through the process if they are a PDF
so far for importing the list of files to be processed I have the following code

Delete a file from Program Files folder using VB.Net Application

I am trying to delete a mdb file from “Program Files (x86)” folder and it denies the access permission. When my application installs in a machine, the mdb file is placed in the “Program Files (86)” folder and while running the application, it tries to delete it from that location. But it shows access permission denied error message. I am using VB.Net windows application. Visual Studio 2022 and OS is Win 10 64 bit.