Recommended Posts

Hey Guyz,

I have made a little utility. When I was in search for a utility to change a file's Accessed, Created and Modified dates in Windows, I couldn't find something I was looking for and given that I like to code, I decided to make one myself.

This utility basically allows you to change a given file or directory's accessed, created, modified dates based on your selection.

http://www.codelake.com/windowstouch.html

What do you think?

I have posted here before to get some feedback and it was great so much appreciated if someone can spare few minutes to test this utility too.

https://www.neowin.net/forum/index.php?showtopic=639009

Cheers :)

the name sounds like it's a program to do something with touch interface...

There was a utility in linux called "Touch" so the name is based upon that.

does this change them indefinately, or as soon as you modify them again it goes back to the current date?

No it will change them when you perform the touch operation. Once you modify the file again it will have new dates. This is controlled by Windows, I am just trying to provide a way to change that if needed.

I will add command line features when I have some more time and then off to do shell integration.

31% CPU usage and 56 megs of RAM to modify the dates and times of 5,000 files? Maybe you should learn pure Win32 API for such utilities.

EDIT:

The program also freezes when selecting all the Date checkboxes and processing a folder structure with 10,000+ files.

Edited by iamwhoiam

Thanks, this is the kind of feedback I am looking for.

I am using standard windows calls which are APIs behind the scene anyways. I did come across a thread somewhere which mentioned a work around to make it quicker! I need to find that now.

How about a word from usability point of view? Is it simple enough to use?

Cheers, much appreciated.

Thanks, this is the kind of feedback I am looking for.

No problem.

I am using standard windows calls which are APIs behind the scene anyways. I did come across a thread somewhere which mentioned a work around to make it quicker! I need to find that now.

Passing structures and pointers also provide slower access in NET languages.

How about a word from usability point of view? Is it simple enough to use?

Not a bad program. Maybe get rid of the menu and the toolbar and have buttons for undoing and applying the changes elsewhere on the form. Another usability option would a shell extension that allowed a group of files to be selected from explorer and processed with a right-click menu option.

The speed and memory usage for such a simple program really does need to be worked on. Have you tried to impliment a worker thread for the processing?

Passing structures and pointers also provide slower access in NET languages.

I don't think I am passing any structures or pointers anywhere.

Not a bad program. Maybe get rid of the menu and the toolbar and have buttons for undoing and applying the changes elsewhere on the form. Another usability option would a shell extension that allowed a group of files to be selected from explorer and processed with a right-click menu option.

The speed and memory usage for such a simple program really does need to be worked on. Have you tried to impliment a worker thread for the processing?

Ok I can get rid of the toolbar and menu, honestly I was making that a general view theme among all my apps. Basically using visual inheritance for getting the base form working. Now that I notice it does use 15MB of RAM when just sitting idle. Never actually noticed that, thought it was all taken care of .NET Framework. However I am able to keep the program size to resonably small.

Change the name, please consider this as serious feedback

What would you suggest?

Thanks. I will see if I can make the user interface a little more clean and make it performing better.

iamwhoiam mentioned about an undo operation. That is kinda hard, I mean I can do it by remembering each and every change I make but then things start to get piled up real quick in terms of memory usage. Imagine doing this for 10000 files and then remembering each file's dates!

Uhm.. not to ruin your fun, but:

1. I've already posted a file properties editor here

2. The name is... misleading

3. This is pretty much pointless anyway

Also:

It uses a lot of memory while idle simply because of the .Net framework, that has nothing to do with your app. It's pretty much a minor, but unavoidable problem unless you move up to a lower level language.

That is ok with me mate. I actually made the first version of this app a long time ago while helping my brother submitting his assignments past due dates. Since then I decided to keep it and keep changing it a little here and there.

Yes I know the .NET Framework has it's overheads but at the moment it is the choice of my programming language.

The name is not misleading even though few here seems to think so, since the original name came from Unix/Linux the Windows variants have kept the name similar.

http://www.codeproject.com/KB/applications/touch_win.aspx

http://www.softpedia.com/get/System/File-M...r-Windows.shtml

http://www.pcadvisor.co.uk/downloads/index...amp;itemID=5058

http://www.pcadvisor.co.uk/downloads/index...amp;itemID=5058

And besides I code to learn something new so not giving up.

Thanks. I will see if I can make the user interface a little more clean and make it performing better.

iamwhoiam mentioned about an undo operation. That is kinda hard, I mean I can do it by remembering each and every change I make but then things start to get piled up real quick in terms of memory usage. Imagine doing this for 10000 files and then remembering each file's dates!

Not an undo option to revert files back to their original dates and/or times. More like you set set some settings but don't want to manually undo them so you click revert changes or something similar just to clear all the options on the form.

I hope that touch code I sent you can help. In plain C with FindFirstFile/FindNextFile and that routine in a loop, it's reasonably fast.

Oh ok.. I already have Clear button which clears the changes to the form if that is what you meant?

Yeah I am looking at your code with a face that I can't explain. Thanks though :) I have found a recursive code to get the file list faster so need to implement that. Shall see how that goes. I need to stop time to get everything finished.

  • 2 weeks later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Pretty nice tool, thanks
    • Indeed. But note that this has Wifi7, HDMI 2.1, BlueTooth 5.4, and 5G Ethernet, so even in the additional features list this bundle blows the Steam Machine away. And, with the money saved, one could improve this dramatically.
    • One of the strangest galaxies in our Universe could help answer some long overdue questions by Sayan Sen Image by Pixabay via Pexels | Not representative An international team of astronomers led by the Department of Astronomy at Tsinghua University has discovered an unusually metal-poor galaxy that may contain signs of first-generation star formation. The galaxy, named Metal-Pristine Galaxy COSMOS Redshift 3 (MPG-CR3), or CR3, was identified using observations from the James Webb Space Telescope (JWST), the Very Large Telescope (VLT), and the Subaru Telescope. The findings, published in The Astrophysical Journal Letters, describe CR3 as the most metal-poor galaxy known from the period known as "cosmic noon," around 11.5 billion years ago. Cosmic noon refers to a period when the universe was producing stars at its highest rate and galaxies were growing rapidly. In astronomy, "metals" refers to all elements heavier than helium, including oxygen, carbon, and iron. Because CR3 contains so few of these heavier elements, researchers say it closely resembles what scientists expect the earliest galaxies in the universe may have looked like. The discovery is significant because it could offer clues about Population III (Pop III) stars, the first generation of stars thought to have formed after the Big Bang. These stars are believed to have formed from gas made almost entirely of hydrogen and helium, before heavier elements were created inside stars and spread across the universe through supernova explosions. Hence this is why CR3 has been referred to as a "living fossil." Scientists have long believed that Population III stars existed only in the very early universe. As more generations of stars formed and died, they enriched surrounding gas with heavier elements, making the conditions needed for metal-free star formation increasingly rare. Because of this, researchers expected the formation of such stars to have largely ended after the epoch of reionization, a period when radiation from the first stars and galaxies transformed the neutral hydrogen filling the universe and made it largely transparent to ultraviolet light. CR3 appears to challenge that idea. The galaxy was observed at a redshift of z = 3.193 ± 0.016. Redshift measures how much light from a distant object has been stretched as the universe expands and helps astronomers determine how far back in time they are looking. In this case, the redshift corresponds to roughly 11.5 billion years ago during cosmic noon. Although the universe was already several billion years old by that point, CR3 shows characteristics more commonly associated with much earlier galaxies. Observations revealed exceptionally strong emissions from hydrogen and helium, including Lyα, Hα, and He I λ10830. Lyα, or Lyman-alpha emission, is a specific wavelength of light produced by hydrogen and is widely used to study distant galaxies. Hα emission is another hydrogen signature commonly used to trace active star formation, while He I λ10830 is produced by helium and can indicate the presence of very hot, young stars. The measured equivalent widths of EW₀(Lyα) = 822 ± 101 Å and EW₀(Hα) = 2814 ± 327 Å are among the highest ever observed in star-forming galaxies. Equivalent width is a measure of the strength of an emission line relative to the surrounding light, and such large values are typically associated with intense and very recent star formation. At the same time, researchers found no statistically significant detections of metal emission lines, including [O III] λλ4959, 5007 and C IV λλ1548, 1550. Emission lines act as chemical fingerprints that reveal which elements are present in a galaxy. Oxygen and carbon lines are commonly seen in galaxies that have already undergone significant chemical enrichment. Their absence in CR3 suggests an unusually pristine environment. Using abundance calibration methods developed with JWST observations, the team placed a 2σ upper limit on the galaxy's gas-phase metallicity of 12+log(O/H)<6.52, corresponding to less than 0.7% of the Sun's metallicity (Z < 7 × 10⁻³ Z⊙). Gas-phase metallicity measures the abundance of heavy elements in a galaxy's gas. A 2σ upper limit indicates that the true value is very unlikely to be higher than the quoted threshold. Even when accounting for uncertainties in the calibration methods, the most conservative limit remains 12+log(O/H)<6.95, making CR3 the most metal-poor galaxy identified at cosmic noon. The galaxy also appears to contain very little dust. Researchers measured a Lyα/Hα flux ratio of 13.9 ± 2.5, a result that suggests negligible dust attenuation, meaning very little of the galaxy's light is being absorbed or scattered by cosmic dust. Because dust is usually produced by earlier generations of stars, this finding further supports the idea that CR3 has experienced very little chemical enrichment. Further analysis using spectral energy distribution modelling, a technique that compares observed light with theoretical models, suggests that CR3 contains an extremely young stellar population only around 2 million years old. The modelling, which used Population III stellar templates, also indicates the galaxy has a stellar mass of approximately 6.1 × 10⁵ M⊙. The symbol M⊙ represents one solar mass, or the mass of the Sun. One of the key questions raised by the discovery is how such a chemically primitive galaxy could exist in a universe that had already spent billions of years producing heavier elements. To investigate this, the researchers examined CR3's surroundings. Their analysis suggests the galaxy may lie in a slightly underdense environment, with a density contrast of roughly δ ≈ −0.12. An underdense region contains less matter and fewer galaxies than average. The team suggests that this relative isolation may have helped preserve pockets of pristine gas. Metal-rich material expelled from nearby galaxies may never have reached CR3, while the lower rate of galaxy mergers and interactions could have slowed the mixing of enriched gas into the system. If future observations confirm these findings, CR3 could provide some of the strongest evidence yet that first-generation star formation continued well after the epoch of reionization. Such a result would challenge the conventional view that pristine star formation ended by z ≳ 6 and suggest that small pockets of metal-free gas survived much longer than previously thought. Researchers stress that more observations will be needed to determine the galaxy's true nature. Future spectroscopic studies with higher resolution and better signal quality could help confirm whether CR3 is genuinely hosting Population III star formation. The discovery is also expected to encourage searches for other similar galaxies, which could help astronomers better understand how the first stars formed and how galaxies evolved in the early universe. Source: Tsinghua University, IOPscience This article was generated with some help from AI and reviewed by an editor. Under Section 107 of the Copyright Act 1976, this material is used for the purpose of news reporting. Fair use is a use permitted by copyright statute that might otherwise be infringing.
    • "I think in the immediate absence of a partner to apply relief" In the words of Sterling Archer... "Phrasing!"
  • Recent Achievements

    • Dedicated
      HidekoYamamoto94 earned a badge
      Dedicated
    • One Month Later
      timbobit earned a badge
      One Month Later
    • One Month Later
      nates earned a badge
      One Month Later
    • Week One Done
      Almohandis earned a badge
      Week One Done
    • Rookie
      dorf went up a rank
      Rookie
  • Popular Contributors

    1. 1
      +primortal
      454
    2. 2
      +Edouard
      161
    3. 3
      PsYcHoKiLLa
      107
    4. 4
      Michael Scrip
      83
    5. 5
      Steven P.
      70
  • Tell a friend

    Love Neowin? Tell a friend!