Is there a windows equivalent of the 'touch' command from the linux / mac os / unix world ? Do I need to create these files by hand (and modify them to change the timestamp) in order to implement this sort of command? I am working with node and that doesn't seem very ... node-ish...
After testing all the answers here and referencing some similar ones, I can guarantee these will work per console shell. Just change FileName.FileExtension to the full or relative-path of the file you want to touch; thanks to Keith Russell for the COPY NUL FILE.EXT update:
This will create a new file named whatever you placed instead of FileName.FileExtension with a size of 0 bytes. If the file already exists it will basically copy itself in-place to update the timestamp. I'd say this is more of a workaround than 1:1 functionality with touch but I don't know of any built-in tools for CMD that can accomplish updating a file's timestamp without changing any of its other content.
For a very simple version of touch which would be mostly used to create a 0 byte file in the current directory, an alternative would be creating a touch.bat file and either adding it to the %Path% or copying it to the C:\Windows\System32 directory, like so:
cygwin comes with touch. I know you mentioned that you don't want to install a whole framework, but cygwin is quite lightweight, and can be called from dos command window without the whole unix-like command line turned on.
Funduc Software Touch is a free 'touch' utility that allows you to change the time/date &/or attribute stamps on one or more files. In addition, FS Touch can add/subtract a specified number of seconds from the existing file time. You can specify which file(s) and/or subdirectories to change via 'complex file masks'. The program can be run from interactively or the command line. New to version 7.2 is a command line switch to change file modified time stamp +/- the specified number of seconds.
If you are using git for one or more projects, the mingw based git-bash for Windows has the touch command.I want to thank @greg-hewgill for pointing out to me that 'nix utilities exist for windows, because it was that which put me on the idea to try touch in git-bash.
I appreciate this is an old question, I just discovered touch on my Windows 10 system. I downloaded and installed Git from here (I think) and it looks like touch and various other utilities are in the bin folder.
I was reading up on the current Ubuntu daily builds yesterday, and I noticed that X86 support has officially been implemented into the current dev builds of Ubuntu touch.This opens up a WHOLE bunch of new opportunities. I got to tinkering with an X86 emulator, using a modified Nexus 7 android bootloader in place of the traditional BIOS. I was able to get Ubuntu Touch running (slow as molasses, and not without the odd graphical issue), it was all going great, until U-T tried initializing the battery and the radio. It all crashed after that, even corrupted the image I was using to do it. However, this proves that Ubuntu Touch is capable of running on X86 hardware.
Now I'm pretty good with virtual hardware, but I suck when it comes to actually trying anything out on real hardware. I have no idea how to port an android bootloader to specific devices, much less attempting to manipulate Ubuntu touch into running on the disgraceful 32-bit UEFI firmware that comes with the majority of Windows (baytrail) tablets.
When the tablet is connected to a PLC, a double-click is required in order for the app to register a touch to the PLC. I know that the touch screen is working fine and even the Remote Operator app is fine because I can navigate the menus and even Run/Stop the connection with a single tap.
Additionally, everything works normally when I use a USB mouse connected to the tablet so I know there is some compatibility issue between the touch screen and the way the Remote Operator registers touches.
I'd also be looking at an obscure tablet screen related setting somewhere. One area that you might look at is the zoom settings. My cheap W10 tablet does odd things with certain programs if I don't get this right.....and sometimes "right" looks a decidedly odd setting. Or perhaps a timeout or touch reset is occurring somewhere, that needs an initial tap to get things going again.
Have you tried with no mouse connected and the touchpad and everything associated with it completely disabled? Hmmm...make sure you have a different mouse to put onto a usb in case all that somehow locks you out.
we are working for a 22" touch panel and windows (newest drivers should be correctly installed).
There is a scene in which we orbit around an object with a camera (by swiping over the screen, or by click-dragging the mosue).
We want an event to be triggered on object click / touch, when we touch/click on the object. This is working fine with the mouse.
But when we try to trigger it with fingers on the touch panel, nothing happens. Then, when we swipe over the panel
to rotate the camera around the object, the event triggers. It does not matter, where we start to swipe (whether the finger is over the object or somewhere else). So the event is kind of delayed by one touch.
It seems like this issue is a focus problem. As if the actor (which has the click/touch events implemented) does not know, that he is focused yet. Only when we click into another area (which has no interaction/collision/implementation at all), the actor seems to know that he was clicked. By further clicking the actor, it lags one click behind.
The touch screen works great for all Windows icons and input fields. When I launch Citrix Receiver (4.11) for Windows the published apps are displayed. I can select any app with one tap on the touch screen. Once I select the app, the app logon appears and the touch screen no longer works. Sometimes if I tap enough times it may respond.
df19127ead