Check Creation Date Of Executable That Is Currently Running

Jun 9, 2009

I would like to implement into my program a version query of the executable and I figured the easiest way would be having a check on the date of the executable. So how can I check the creation date of the executable that is currently running (from the program itself that is)?In short - double click on .exe and it will tell the date of its creation

View 10 Replies


ADVERTISEMENT

Anti Executable Software Creation

Jul 14, 2009

I'd like to make a program similar to Forensics Anti-Executable...Except i know of some methods like the registry method, but i see that there are many vulnerbilitys and i'd like to know how to make it wheere it cheacks with my app if its ok to execute the program trying to run...like if i had this program running and i tryed to run notepad it would give you a dialog requesting for a password and login. also have this work with the registry like if an installation is creating a new key or editing or deleting a regestry entry to notify and ask for permission.

I just have ideas of how i want my program to run but i dont have a clue to how to do it...I also am planning on making this a windows forms application. [URL]

View 7 Replies

IDE :: Get Executable Running?

Jan 13, 2011

Firstly I'm not a programmer and do not pretend to be one. I just enjoy killing some spare time I've been usining Visual Basic (started with VS2005 and now onto VS2010) to develop a program. Up until now I've been happy to plod along running the progam from the development environment. However, I recently was asked by an colleague if they could have a copy of the program to use.Therefore I opted to create an executable file for him to use. The problem is that whislt the executable file runs fine on my machine (Win 7) where VS2010 is installed, it does not deploy correctly on his machine (XP pro). Following is the message that I get:See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

[Code]...

View 2 Replies

Running Executable Within Program?

Aug 5, 2009

I'm trying to run a program (mame.exe) within a vb program. Mame is a program that allows you to run old video games. The games are stored in rom files. If you want to run mame.exe from a dos prompt, the syntax is "c:/mame.exe [rom]". The [rom] is the particular game you are running. I'm trying to create a front end menu from which I can execute games.

I've tried:

Process.Start(
"c:/mamefiles/mame.exe [rom]")

and I get an error that says it can't find the file.

I tried

Process.Start(
"c:/mamefiles/mame.exe", "[rom]")

and it seems to start the program but immediately shuts down mame.I tried

Shell("c:/mamefiles/mame.exe [rom]")

and again it seems to start the program but immediately shuts down mame.

View 8 Replies

Executable Directory Where Application Is Running From?

Apr 7, 2010

I need to get the path (not the executable) where my application is running from:System.AppDomain.CurrentDomain.BaseDirectory()

View 3 Replies

Running A VB2005 Executable On Any Windows OS?

Mar 14, 2011

Can a VB2005 executable created from VS2005 run on any Windows OS (vista, 7)? If not what is the "patch"?

View 1 Replies

Asp.net - Know The File Creation Date

Sep 27, 2011

I have a files list which contain the directory of file. I want to know file creation date of that files. I used fileInof.CreationTime. But It is not displayed creation date. How I can know about this.

[Code]...

View 1 Replies

Running An Executable Application .net Version Lower Than 4?

Jul 13, 2010

It appears that the executable application I created can only be run on a computer with .net 4. How can I compile/create the executable to run on a computer with .net 2?

View 3 Replies

VS 2005 Running Fortran Executable Using 'Shell'

Apr 14, 2009

I have an old Fortran program that I've compiled to a windows executable. On opening this from an explorer window the executable runs fine, however on using Shell to run the program a traceback error occurs. Just to be sure I used Shell to open a batch file which runs cmd /K ...exe Why is it that on double-clicking the batch file it will run the executable correctly, however on calling it from my visual basic (very simple button) program the batch file opens the command prompt just fine but does not execute the whole Fortran code successfully? Incidentally I have found that the error occurs on a line to do with reading from a file; it can print to the command prompt etc. with no problems just not deal with the reading the external text file for some reason. By the way paths for files etc. are definitely correct. It makes no sense to me, but from a bit of research it may have something to do with correcting the read statements - at the moment they are just in the form: read(99,*)

View 1 Replies

Change File Creation Date?

Apr 29, 2009

I'm trying to save a files save date, modify that file and then restore the file back to it's original date. I can't get it to work, I've tried it several ways and cannot get it to work.

My code so far is

origdate = My.Computer.FileSystem.GetFileInfo("inspection").L astWriteTime.ToShortDateString()
' changing file content here
System.IO.File.SetLastAccessTime("inspection", origdate)

View 2 Replies

Compare Date Of File Creation

Aug 4, 2010

be able to check if an application i am writing has been run on a week by week basis. i have created a button that when pressed creates a text file with nothing in it, i can read back the date it was created which also gives me the time which i dont need, i then need to compare the date the file was created to see if it is older than 6 days if so delete the file. how can i check to see if a creation date is older than six days???

View 9 Replies

Creation Date Column In SQL Table?

Apr 29, 2010

What is the easiest way to automatically fill a datetime column in an SQL data table with the date the row was created? Using SQL Server 2005 if that matters.

EDIT: I've tried using GETDATE() for default and that works for an INSERT Query but not when the TableAdapter adds the row.

View 6 Replies

Get Creation Date Of Multiple Files In Vb?

Jul 20, 2011

I'm trying to pull the creation date of all the files (1000+) in a folder on a local server to list in an excel file. I've been trying to use FileSystemInfo for this, but it doesn't seem to work to get the creation date of MULTIPLE files because it doesn't allow me to use wildcard characters to read all (not even sure if that's what I'll need to do).

View 1 Replies

Shell Command Launches An App Differently Than Running The Executable

Sep 1, 2009

I have a legacy vb6 application that uses a shell command to launch a newer .net application. It's a very simple command, just launches an app. Here's the problem. When I run the .net app through the shell command, it tries to connect to a database that is not referenced in it. If I double-click the .net executable, it runs just fine and connects the way it is supposed to. Normal, no problems. Only when I run it from the shell command do I have problems. I have checked everything I can think of and simply can not come up with a reason why the app would behave differently when launched from a shell command.

View 3 Replies

File Creation/modified Date/times?

Mar 16, 2010

I created a background thread that constantly scans a specified folder for any .xls files that are created or modified. These files come from a vba macro in outlook that will automatically save the attachments of the mails in the this folder. This will update the modified date/time, or at least it seems to.

For Each fi In aryFi
fidate = System.IO.File.GetLastWriteTime(path & fi.ToString)
fidate1 = System.IO.File.GetCreationTime(path & fi.ToString)

[code]....

Everytime I check to the code, the fidate and fidate1 variables are indeed the correct dates/times of the file it's currently checking. It almost never gets inside the elseif block at runtime though.

View 1 Replies

Loading Text Files Into Oracle Using Creation Date?

Apr 12, 2011

I've written a loading program that writes text files to our database. The text files are dumped by another system every 2 hours onto on a shared network drive at my work. Here's the problem though - the files don't have a date/time stamp within them. I've been getting the date for each file from the creation date. That works okay, but when I've written loading programs in the past, I like to move the loaded files into a folder called "Loaded Files". That way, I can quickly see visually how many files I've loaded vs how many have not be loaded.

The problem this time, is that if I were to move the file into another folder, the creation date changes...a lesson I learned when I copied all of the files into a directory on my C: for testing. They all had the same date/time stamp!My question is, what's the best way to handle this? I don't want to move the files after loading them if it alters their creation date. I mean, what if I have to go back and load one for some reason, the date will be lost forever. I also don't want to write something into the software that has to check a file each time before loading it to the database.

View 2 Replies

Get Date / Time Of Current Executable?

Apr 13, 2010

What is the best way to get the file date and time of the currently running executable?

View 4 Replies

Creation Of Program To Create Security Code Based On Current Date?

Apr 3, 2012

I need some help in the creation of a program to generate a security code based on the current date. I need to create something that first multiplies the MMDDYY (ie X=MM * DD * YY) then also adds the MMDDYY then finds the remainder and then multiplies but a specified number. I would like to create a small program that sits in the system tray with this code displayed. The code will always need to be 6 characters, so I might need to pad it with zeros. It has been years since I took basic VB, and I am really rusty.

View 1 Replies

Check An Application MainForm_Load If The Executable Is Signed And The Signature Is Valid?

Apr 26, 2011

Since I sign my project .exe files with my code signing certificate, I want to check in my application MainForm_Load if the executable is signed and the signature is valid?If not signed or signature has been tampered it must exit the code.

View 2 Replies

Excel To Check The Date Value In A Cell And Compare It To Current Date?

Oct 18, 2009

how can I create following thing with Visual basic?I would like my excel to check the date value in a cell and compare it to current date and if the value in the cell is older than 2 months compared to current date it would change the cell's colour.

View 1 Replies

VS 2010 Program Crashes As Published Executable, Not As Program Running In Studio Or Express?

Jun 6, 2012

I wrote this VB program to be able to throw a device we developed into programming mode where we use an ATMEL Flip installer to upload new firmware. I can program one device after another running the application off of Visual Studio Express 2010 or Visual Studio 2010, but when I go to publish this file and run it on another machine, it becomes unstable and crashes after each upload. On those same computers if I run the raw unpackaged program under Visual Studio Express, the system does not crash, and I can program devices repeatedly.

View 5 Replies

C# - Date Comparison To Check If Last Date Has Passed?

Dec 16, 2011

I have a DB table with the following columns

PolicyNumber
NextPremiumDate
PremiumNumber

Example For each PolicyNumber i have 5 NextPremiumDates.I want to display the 1st NextPremiumDate which is easy ...but i want to show the next NextPremiumDate only after the last NextPremiumDate has passed...How do i check if the last date has passed?I mean if i have 5 dates in the table given above...how do i check if the 1st date has passed then show 2nd date ...if 2nd has passed show 3rd and so on.

View 1 Replies

File I/O And Registry :: FileStream File Creation With Date?

Apr 16, 2009

I have found many pages referring to having the date be part of a txt file being created, but not like the way I need. Having said that, this is what I've got.. [code] I read a page on working with txt files and learned what I could from it. It said to use the method in the beginning of my code for creating the file. It works great, but I would like to have a new file name everday, hence the date being integrated. So even if program was running, when midnight hits, a new txt file is created and new entries are written to that file. But I can't even get the date to be put in there. Everytime I try to make this work by using methods I read about in other pages, I get a syntax error, or a warning saying an end of statement is expected. I'm not sure those methods are compatible with what I've already got going.I was actually trying to store these values in a database, and I got real close I think, but I couldn't get any help to fix my problem so I'm trying to write to daily txt files instead. url....

View 6 Replies

Deployment :: Can An Executable Program Create An Executable File

May 17, 2012

I have a program that outputs a file. I want the user to be able to just double-click the output file and launch the program, just like Word and Excel. In Word for instance, one doesn't necessarily have to open WORD then click on File--> Open and locate another Word doc. He can just go to the folder and open the Word doc. I want to implement the exact scenario in my program.

So far I have tried creating TextFile and added it to the Resources. On FormLoading, I simply I stream-read the Resouce file, but I can't write to the Resource on FormClosing, since the Resource is ReadOnly. Also, the Resource is built & compiled so I suppose you can't add anything to it at run time.How you lunch an output file without launching the Executable program that created it?

View 1 Replies

Executable On Vista - Open The Executable It Goes To A "WindowsApplication1?

Jun 1, 2009

I have an executable that I was able to get working on all XP machines by registering all the .dll's associated with it.On Vista, however, I go through the exact same registration process but right when I open the executable it goes to a "WindowsApplication1 has stopped working" dialog. I registered the DLLs in the SysWOW64 folder. I also ran Dependency Walker which came up with IEFrame.dll as flagged, don't know if that is relevant though.

View 6 Replies

Check If EXE Is Running?

Aug 24, 2010

Edit by Moderator: Split from this thread[code]...

View 4 Replies

How To Check If App Is Running Or Not

Feb 21, 2011

I am working on a tool that will better manage the server applications I run on my server. I have a working version of what I need written in VB6, I've tried converting the code from vb6 to .net with no luck. Basically I have a few server applications I would like to display the status of, if they're running or not. Then with a few buttons to start/stop the application accordingly. I've found a few different code snippets across the web which I've tried to implement in to my project with no luck.

View 5 Replies

.NET Check If Another Application Is Running?

May 11, 2009

I have an application that provides core services for a series of other applications.When another of these applications is started, I want to check that the service application is running and if not shutdown.What is the best method to check for the existence of the other app? I'm thinking that I should be using a global mutex in the services app and checking for it's existence in the other apps. Is this the correct way to proceed?

View 4 Replies

Check For Certain Running Processes

Aug 15, 2011

I am trying to check for certain processes that is running and then inform the user of those processes via textbox like "The programs; -name of the processes running goes here- are running". [code]

View 2 Replies

Check If A .exe Program Is Running?

May 28, 2010

Although I signed up a year ago I didnt have enough free time to carry on programming, but have now made some time.

I have spent the past 2 hours trying to look for a code for visual basic 2008 that will check if a program is running.

It would be really helpful if someone wrote the whole code out and made it clear exactly where I put them name of the .exe file

View 2 Replies







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