Find Oldest Folder In Program?

Jun 29, 2011

I am trying to make a program that backs up folders. I want to have say 5 folders, then if it is backed up again I want the oldest of the 5 folders to be deleted and the new one placed in it.

How would I find the oldest folder in a directory

View 1 Replies


ADVERTISEMENT

Find Program When Accessed To Folder?

May 3, 2012

How I can find program when accessed to folder... I know it show what file created, but I wish know WHICH program accessed to folder not what is created in folder !

View 14 Replies

Deploying Program Can't Find Dlls In Same Folder

Apr 5, 2012

I wrote a program in VB.NET which uses several .dlls that I programed in c++. The dlls wrap some functions from an old version of the program. On my development computer everything works fine but I build a release version, copy it and the dlls onto the target machine and the .exe starts up fine. When the program tries to use a function from the .dll it throws an exception and says "unable to load DLL "c:/the path/my.dll" the specified module can't be found."I don't know if it makes any difference, but I am defining the dll functions in the main vb project using:Declare Function MyFunction Lib "c:/the path/my.dll" (ByVal in1 as Double, ByRef out1 as Double) as Integer.I have checked the .net framework on the target and version 4 seems to be installed same as the development computer. Both are windows XP machines. I have no idea if it is the way I programmed the .dlls or just something with my vb.net project.

View 1 Replies

VS 2010 Search Newst To Oldest?

Nov 30, 2011

I'm trying to parse some log files for a particular PC name that I want to go newest to oldest to find the last time a PC was on the domain. This, and a bunch of other stuff is piped out to a text file that I want to read out of. I've figured out how to get the newest file in the directory, but I want to be able to say "if it doesn't exist in this file, try the next oldest by date".

This is what I have now to get the newest file. Am I going to have to create another function to get the next file?

[Code]...

View 1 Replies

Build A Program Through VB That Creates A Folder In Program Files Folder?

Dec 28, 2010

Is it possible to build a program through VB that creates a folder in program files folder and behaves like any other usual program?If not, though witch program can i make this?

View 6 Replies

IDE :: VS 2008 - Setup Project : Adding Folder Structure To The Program Files Folder?

May 13, 2009

I am using Visual Studio 2008 Setup project. I need to copy one folder and the sub folders into the program files but when I tried to copy or add the folder to "Application Folder" in File System editor, I am able to add only files and not folders.

View 1 Replies

Change Appliaction Folder Path From Program Files To Public Folder

Sep 27, 2011

how to change the install folder path in a setup and deployment project/Installer class from program files to C:usersPublic in windows 7 and allusers folder in xp.Want to add MVP with my name.

View 3 Replies

Cant Get My Program To Write Into A File That Is Several Folder Deeper Into The Bin Folder?

Apr 29, 2010

the first problem is getting my program to load rss feeds from other websites mostly here:http:[url..... im trying to load it using the webbrowser. i want the rss feed to load right onto the form. im positive that its possible. i have the imports system.net in my code already for xml documents.the second is i cant get my program to write into a file that is several folder deeper into the bin folder.[code]......

ive tried playing with the code moving around the folder names, making sure there capitals are correct, etc. but nothing works. it creates the file in the wrong spot.

View 14 Replies

Find A Folder Embedded Anywhere Within Another?

Oct 19, 2011

I need to find folder abc which may reside on the drive directly, eg C:abc, or it may reside in C:xyxghyklmabc

At present I am building an array of all folders (recursive) & using instr, is there a fasteretter way?

View 1 Replies

Find All Files From A Folder And From All Sub-folders?

Jan 9, 2010

How to find all files from a folder and from all sub-folders?

View 4 Replies

Find Biggest File In Folder?

Jan 15, 2012

I have a folder and in it I have 3 files.How would I go about Identifying the biggest(in bytes) and moving it somewhere else on the hard drive, say C:BiggestFile.jpg?

View 5 Replies

Find File And Folder Path?

Oct 17, 2008

I like to search trough some folders to find files. My code to search trough folders and sub folders are:

Code:
For Each Dir As String In FileIO.FileSystem.GetDirectories(My.Application.Info.DirectoryPath, FileIO.SearchOption.SearchAllSubDirectories)
Next

How can I get the path of each folder and subfolder with this code??

View 2 Replies

Find Folder Directory (Similar Name)

Nov 20, 2010

i am trying to use code to find search for a folder and it will give me back the full directory root. I am using this code:

[Code]...

View 4 Replies

Find Folder Path In Treeview?

Oct 19, 2008

How can i loop trough treeview and get path of directory of each folder in the treeview?I have this code for adding a color to a treeview item, but it seems like its not possible to retrive the folder path...

HTML Code:
'add color to folder in treeview
Private Sub RecurseNodes(ByVal

[code].....

View 1 Replies

VS 2008 Cannot Find The Application Folder

Nov 17, 2009

When I install my Application on a computer, and look in the program folder with explorer, I can not find the application folder,

View 14 Replies

VS 2008 Write A Program To Create A Shortcut In The Startup Folder Of A Different Program?

Jun 15, 2009

how i can write a program to create a shortcut in the startup folder of a different program. So i have one program on my computer that should run at startup, i just need another program to create a shortcut to it, and then copy this shortcut into the startup folder.

View 20 Replies

Find Out Exactly Which Files / Folder Will Need To Copy Over For Deployment?

May 16, 2011

I (through a ton of help from everyone here at stack-o) have created a small WCF which is hosted as a Windows service using TCP..Last question for this little bugger; it's time for deployment. In my solution, there are 3 projects. One is the Windows service, another is the imported WCF, and finally a setup project I added for install.I can install/uninstall the service on my machine by going in the solution directory and finding "Setup.exe" or "Setup.msi". Executing either from explorer will install the service on my development box.Now there are a few directories associated with this solution. I'm betting that simply copying setup.exe or setup.msi to my target server and trying to run it will bomb out. How can I find out exactly which files/folder I will need to copy over for deployment?Or should I just copy the entire solution directory? That will be a little difficult for my coworkers as the setup routines are nested in directories 5 deep.

View 3 Replies

[2008] Find A Folder That Is Shared Between All Users Of A PC

Mar 9, 2010

I need to find a folder that is shared between all users of a PC, every body being able to read/write to that folder and below, without any errors. I think that the folder "C:Documents and SettingsAll UsersShared Folder" would do the trick. How do I find the path to that folder, regardless of the OS used (Xp / Vista / 7) and regardless of the Windows language (With a french Windows, this folder is called "C:Documents and SettingsAll UsersDocuments partag").

View 5 Replies

Make A Program That Opens A File In The Folder The Program Is Stored?

Aug 26, 2009

How do I make a program that opens a file in the folder the program is stored?

View 6 Replies

Find Default Temporary Folder In Windows Xp , Vista And 7?

Oct 13, 2011

how do you find the default temporary folder in windows xp, vista and windows 7?

View 1 Replies

Find Out If A Folder Exists Or Not In Available Drives On The Client Machine?

Dec 22, 2009

I want to simply find out if a folder exists or not in available drives on the client machine. user will simply pass a string eg:

searchfolder
C:TestFoldersubfoldersearchfolder
C:TestFoldersearchfolder
C:searchfolder

[code]....

View 2 Replies

MS Access Database Run Time Error Couldn't Find In Bin Folder?

Nov 23, 2011

I am developing application using VB 2010 in v studio 2010 environment running win 7 home. I am using nwind.mdb ms access db which is sitting in c:xyzlocaldata folder and is linked with application, i can run query and retrieve/preview data with no problem. When i run application, i get run time error >>Could not find file C:xyzlocaldatainx86Debugwind.mdb. I copied a copy of access db to this folder, i don't get error message. However fly time transaction data are updated in access db sitting underC:xyzlocaldatainx86Debugind.mdb folder not under c:xyzlocaldata folder.I have all reports and queries linked to access db sitting under c:xyzlocaldata folder, process transactions are not reflected in this folder access db.Transactions are updated

View 2 Replies

Way To Find Exact Location (Drive / Folder) Of A Specific File

Jan 31, 2011

What is the best and fastest way to find the exact location(Drive/Folder) of a specific file, without scanning the whole drive. Right now, I am using those two instructions to locate EXCEL.EXE so I can properly call it with a shell command.[code]It is quite a long process, and I have to deal with some access denied folder like System Volume Information. I am quite new to VB programming.

View 3 Replies

VS 2008 - Program That Will Patch A Program With A New Exe - "Could Not Find File 'System.Byte[]'." Error

Mar 29, 2010

I'm making a program that will patch a program with a new Exe. Its all working with this code

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles patch.Click
patching = True

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

I get an "Could not find file 'System.Byte[]'." error.

View 2 Replies

Zip A Folder Using Program?

Jun 20, 2011

I need a way to zip the contents of a folder using vb.net(shell32 dll).I found the below code on internet, but does not work.[code]...

View 2 Replies

Folder Not Appear After Publish Program?

Feb 24, 2011

When I publish my program, I can't see the folder that I have in my solution explorer appears together with other files. I have been wondering how to add a folder or I do it wrongly. I have using this method:-Project.. add... new folder and I name it as SC1. But when I publish it, I can't see in in application files(It's not embedded together). I can't use add existing as it required me to add a very specific files (Not a folder ). As what I can see, there is not specific properties for folder sc1 (build action /copyto output directory).

View 11 Replies

Hide A Folder Using Program?

Apr 25, 2010

I want To creat To creat a program that can hide folder ...

Till Now Everything Is done But i need an other code for hiding folders !!

View 7 Replies

Index A Folder Using Program?

Dec 15, 2010

I am trying to develop a search engine in asp.net using lucene.net. I go through many tutorials and pages to get the appropriate results but i couldn't.Actually I have a folder with some files(doc,ppt,pdf,excel etc..) and i want to search within that folder only for contents and if the results are not found within that folder then ask user to search on web.

for example i have a folder with thousands of files @ C: est and if user searched for "miller" then it should search into every document. if results are found then it should display results like that[code]...

View 2 Replies

Load A Folder In A VB Program?

Sep 5, 2010

I'm trying to make a custom skin maker for a program I'm working for. The concept is, you provide all the images needed for the program in a folder and then load that folder into the program which then sorts out each image in their respective areas. I know how to load files, but instead of making the user load the files one by one I'd like them to be able to load them from a folder.On a related note, I'd also like to know if it was possible to allow my users to move their controls around the program. For example, say they'd like their exit button in a different location as it'd look nicer with their skin, is there a way to allow them to move it? Particularly, it'd be nice to have a check box that enabled or disabled the ability to drag them around so they don't accidentally drag it when trying to click it.Also, how could I save their changes to this skin so it'd load up the same every time without overriding the default skin.

Finally, I have a piece of code that allows me to drag the form around as it has no normal border but I have a button that keeps it on top at all times, I'd like that button to also disable the ability to move the program while active and restore the mobility once clicked again. Here is the code used to move the program if that helps any.

[code]...

View 11 Replies

Program For Monitoring Folder?

Feb 28, 2010

build a program for monitoring specific folder for example : C:MyFolder

i want the program check the bove folder and give me information about the following:

Files with date modified 'current day'
The number of files with date current day
The size for that files
Send that information by e-mail

View 13 Replies







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