File Time Stamp Changing?
Jun 14, 2009I need to know how to change the last access, last write, and created time, of files and folders
View 10 RepliesI need to know how to change the last access, last write, and created time, of files and folders
View 10 RepliesI have been dabbling in VB before and i played around wiht linq to sql back then but im wondering what i should go with here.I need to have a list of people.. They should all have their own id nr.
The people in the list are supposed to keep a record of values changing over time with a datetime stamp. (In my case its numbers from a test outcome of blood)You have to be able to add people and delete people. All records will be deleted too.A Chart will read information from the records and display changes over time in chart.I was thinking of doing it with linq to sql and i was kinda aiming at Creating datatables with id names from the script
Havent found a way of creating datatables from a script though..I was hoping for a solution like that.. And i was hoping id be able to search databasetable names.
Is there a way of converting a unix time stamp to normal format time and date in .NET?
View 3 RepliesHow can I convert SQL time using a datetime stamp to milliseconds. I am doing a highstock chart using VB.Net
and this is my selection code so far
Dim mydatalist As New List(Of XyData)
Dim sqlReader As SqlDataReader
Dim strConn As New
[Code]....
How to do one time password for login with a timestamp of 60 sec? I am doing a security project and i am required to do a one time password for a more secure login.Anyone has any example?
View 1 RepliesI need to compare 2 files one on a PC in country X and 1 on a PC in Y.Country X and Y could be any country in the world.
When I compare the last modified dates of the files, it returns the local modified time, so they are always different.
How can I autofill a textbox with a date/time stamp?
View 2 RepliesDoes VB9 provide a compile-time date/time stamp function? I know VB6 did not; I'm hoping VB9 does.
View 1 RepliesI am coding ib Visual Basic. I need to store the current system time in MS Access timestamp field. How do I go about it.
Dim row As DataRow = ds.Tables("StudentTable").NewRow
row("SSMA_TimeStamp") = System.DateTime.Now.ToString()
I am having a hard time finding some code to find a fiscal year. I want to be able to retrieve a Time stamp, and then find out what the Fiscal year is. July 1st thru the end of June So July 1,2011 thru Jun 31st, 2012 is all Fiscal Year "2012"
View 2 RepliesI have a really interesting task I need to code and I'm stuck. The application I'm creating Takes the mute button on my laptop and triggers an even when the mute button is pressed.
The issue is I found when the mute button is pressed, the computer sends the v_key code for volume down in a rapid rate. What I want to do is display the v_key code and a time stamp in a text box:
When I press the mute key, the v_key code and time stamp are displayed for every instance that code is thrown. The same goes for un-mute.I'm having issues with my application not triggering the event when the mute is pressed because the computer is shooting out the v_key code so many times, so fast.
My plan is to create a kind of de-bounce logic- IF the v_key code is detected x amount of times in y timespan then.To do this I need to know how fast and how many times this code is occuring.
Any direction or ideas on how to go about this?
Dr.Bones- " If my application is too hard for a 5th grader to run, I've made too complicated"
Im having a problem passing a date and time stamp from vb to mysql. My code is as follows:ComboBox1.Text.ToUpper() & "', '" & TextBox1.Text & "', '" & Now() & "'"Where the comboBox populates the first field, the textbox populates the second and in the third I get 0000-00-00 00:00:00. I have formatted the field as date and time - which is what I am after
View 8 RepliesI have a VB6 application which has been running succesfully for years under XP, however under Vista data loss has been observed.It appears that if the app is run 'as administrator' then it connects to the correct database file, however if the app. is not run as administrator then vista creates a copy of the database (no idea where) - hence I end up with 2 versions of the database.
In fact I can delete the database file entirely and the app. still works fine because vista is using it's own copy - the problem is how do I back up this 'vista copy' when I can't find it (search doesn't find it).
I understand how to rename a file in vb.net as I use the coding at the end of my post. However, is its possible to rename a file and if the file exists then to rename it and add +1 to the file name? So if I ran the code.
'Run it first time
My.Computer.FileSystem.RenameFile("c: est est.txt", "c: estNewName.txt")
'Run it again but it should add +1 as the file will already exists so it should be "c: estNewName1.txt"
My.Computer.FileSystem.RenameFile("c: est est.txt", "c: estNewName.txt")
Decided rather than rename and +1 it would be better to just date stamp it.
My.Computer.FileSystem.RenameFile("c: est est.txt", "Test" & Format(Date.Now, "ddMMyy") & ".txt")
I am attempting to change an image at run time but continue to get an error stating, "File not found, Exception was unhandled. I am assuming the error is with the file path but I have not been able to find a working variation.
Below is the code I believe would be correct but I continue to get the error. If working properly, the program would change the text and picture based on user input.
Private Sub btnInfo_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnInfo.Click
Dim strFriendName As String
[Code]......
I have 2 datetimepickers on my form, and I use them to pass parameters to my sql queries for reporting purposes. You would use them to pick a date range and display clock in times for employees. Anyway, I need an option so users can see information from a single day(24 hour timespan) My first Idea was to let the user change the date on the first datetimepicker then changing the time to 12:00 AM then the second datetimepicker to 11:59 PM. I want to be able to do this programmatically, but I couldnt figure out how to change the time.
View 1 RepliesI am trying to load a icon from a path and set it as program icon any idea how to do that .
View 1 Repliesafter adding 3 hours from the local for the 3rd timer, how can i get it to look like timer2 once i debug?PrivateSub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label1.Text = TimeOfDay.UtcNow.ToString("dd/MMM?yyy HH:mm:ss")
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Label2.Text = Date.now.tostring("dd/MMM/yyyy HH:mm:ss")
below once i debug, it gives me, 07:07:15 AM i don't want that, i want it to show like the others?PrivateSub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
Label6.Text = Now.AddHours(3)
I can code thu an inputbox a new text property of an existing button. However the change only exists while the application is running and lost after the application is shut down. How do I make a perminent change so the new button text shows when the application is run?
View 2 Repliesim trying to make a cheat for minecraft(speed walk) but im having problems. every minuet i want the clock to go ahead by 2 minuets to speed walk. can someone correct my code? TimeOfDay.AddMinutes("2:00")
View 2 RepliesFor Each Ctrl As Control In Panel20.Controls
If TypeOf Ctrl Is CheckBox Then
CType(Ctrl, CheckBox).Checked = False
ElseIf Ctrl.HasChildren = True Then
Uncheckboxes(Ctrl)
End If
Next
I have a few panels that contain the controls, how can I check them all at once rather than use that code above and just change the panel number each time? It'll get pretty messy if I have to keep pasting all that code and just changing one number.
I am making my project for this semester. I am making "System monitoring Tool" so i have make a GUI and also get the all parameters but one thing missing I have tried to find from different places but not found that is the "continues line" that represents the changing values of CPU usage along time. same like "windows task manager" shows.
View 1 RepliesIs there any function in vb dot net to convert datetime to unix time stamp If I google I get only the vice versa but not vb.net to unix time stamp
View 3 Repliesi have seen that this is a common error but not sure what the common solution is. I need to date stamp the word doc that is being generated from my Excel Macro and i need to save this to a specific shared folder.every time i try to insert CallDate into the saveas i get an error that basicaly means that then / is not supported as a naming character. any sugestions? See Code Below.
[Code]...
on my program i have an activation in it and in order to activate the program you need to enter a code that is stored in the settings. so i was looking through my computer and i found the programs config file. and so I opened it and i found all of the codes for the activation. I need to find out how to make the file so the user doesn't have access to it and then how to move it to a more hidden place in the C: drive.
View 3 RepliesIs there anyway to take a static stream reader, and switch it to another text file based on the user changing the file?
View 1 RepliesI want to print an array WebBrowser each time to a different printer without changing the default Printer (not to use the SetDefaultPrinter function) I tried to work with the PrintDocument object(he have the Print function and also i can choose a printer name) but I cant attach the
[Code]...
i am developing a software called Logon screen changer xp and i get this error [URL] what is the solution the program is created in vb.net 2008 with .net framework 2.0 and it changes a registry value and replaces a file and copies a file very simple but there are security issues with xp
View 11 RepliesI wrote a file and I am getting double files.... My Loop executes when its equal to what I want to change it starts my sub procedure which copies the new information into the temp file. It would be there if it then went back to the end of the loop and continued however its going back to the loop and putting in the old information that I changed from. So then I get a duplicate name with different records.
Dim fmtStr2 As String = "{0, -16} {1, -10}{2, -14}{3, -14}{4, -11}" 'format by zones
Dim str() As String = IO.File.ReadAllLines("csvSTOCKS.TXT") 'ReadAllLines into the str() array.
[code]....
Changing the data from one file to another in this case giving a 20% discount to an item and throwing it into another program i.e "cowboy2" for some reason instead of changing the case.toUpper the user gives it selects the last part of array and doesn't calculate anything. Is it an error in the way i'm selecting which case to use?
[Code]...