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...
I'm surprised how many answers here are just wrong. Echoing nothing into a file will fill the file with something like ECHO is ON, and trying to echo $nul into a file will literally place $nul into the file. Additionally for PowerShell, echoing $null into a file won't actually make a 0kb file, but something encoded as UCS-2 LE BOM, which can get messy if you need to make sure your files don't have a byte-order mark.
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.
What this does is attempts to execute a program called $, but if $ does not exist (or is not an executable that produces output) then no output is produced by it. It is essentially a hack on the functionality, however you will get the following error message:
2>nul sends error-output (output 2) to nul (which ignores all input when written to). Obviously the second command (with 2>nul) is made redundant by the type command since it is quicker to type. But at least you now have the option and the knowledge.
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:
The copy command supports merging multiple files into a single destination file. Since a blank destination cannot be specified using a space character at the command prompt, two commas can be used to denote that.
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.
This content can be saved to a reg file. This will add a right click context menu for all files with the "Touch File" ability (tested on Windows 7).Copy all the following lines to reg file. Run the file and approve the question.Right click on any file (or multiple files) - "Touch File" option is now available.
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 have problems scrolling the left column that contains notebooks and tags. I have less than 10 notebooks but a multitude of nested tags.When I attempt to scroll I inadvertently pick up notebooks and drop them in different stacks or create new stacks and I pick up tags and drop them on other tags creating even deeper nesting.
I have installed Evernote Touch but it only synced about half of my notes 700 from a total of 1500. One feature missing from Evernote Touch is the ability to change the creation date (I scan correspondence in batches and like to update the creation date to the date of the correspondence - not the date scanned).
I have the same question. When is Evernote going to get up to speed with what Microsoft is doing? If it is some sort of internal battle going on with muscle boy Microsoft simply not allowing the competition to come forth with something other than Onenote then we need to know that. If Evernote is losing the battle, so be it. We'll just have to scrap using Evernote. It is not a viable solution in Windows 8.1 and beyond and Microsoft is not looking back. Windows 10 and their new Spartan browser will be out soon and they aren't going backwards.
Either Evernote doesn't monitor this discussion group, or is choosing not to address this issue in any way. It's been over a year since this thread began and no response from them. Nor has anyone in the community made any suggestions. With only 5 of us complaining here in all that time, either this site is rarely visited, or the problem is unique to our setups, or Evernote doesn't find it compelling enough to deal with, squeaky wheel and all. I have a Win 8.1 Surface Pro 3, my only Win 8.1 touchscreen device. Touch control works fine on my Android Evernote tablet and phone. My next step is to pursue solutions on other Websites. I'm too locked into Evernote at this point to consider switching to a new app. Perhaps they know and count on this too.
I was wondering if JumpCloud has a zero-touch like experience for windows machines. Essentially, we are a fully remote company with users all across the world, so having a machine shipped to IT to setup and then ship to the user wouldn't be ideal. Providing steps to users to change user names, machine names and then binding their OKTA account and having them reboot is also quite of a task. I know there is no way to do it like DEP for macOS, but something a bit cleaner would be nice. Open to all ideas here!
Provisioning Packages for Windows are very similar to Mobile Configuration Files for Macs (mobileconfig).
They are based on an XML-structure carrying configurations and payloads which can be applied to a computer.
In the case of Provisioning Packages for Windows such will be packaged and encrypted (optional).
Once done, these packages are distributed and applied in the following ways:
If you would want to bundle the agent, this would bloat the package quite a fair bit, but you can also bundle a powershell script which downloads/installs the agent.
Scripts can't be interactive though (they will not be shown during execution).
More on c:
If you're working with Dell (for example) you could make use of their offerings around Image Assist.
(Registration and Download).
You could consider to 'just' make use of a custom Unattend.XML which will be bundled into your OS out of the factory - or you can submit a fully customised image if it's worth effort.
If you would use a custom Unattend.XML, it can control the OOBE experience (set the computer name, create an admin etc) and you also have the option add Commands.
For example a Synchronous Command (before Logon of a user) could download our agent and a First Logon Commands triggers the installation of the agent.
Alternatively you could also download a script from a bucket and the second command would trigger that script once logged on.
One question I got from your initial post: You don't assign users via JumpCloud, but binding Okta accounts instead?
Thanks @narbeh
The only option I've figured out until now to 'automatically' bind the user is by running a PS script using the JumpCloud PS-module.
I'm extracting the System ID and then look it up (set in a custom attribute on the user).
I wrote about it here a while ago. In the meantime I'm reading the System ID straight from the config of the agent instead querying the SN.
To do it automatically, there would need to be a 'lookup table' within JumpCloud itself.
New hardware and API elements in the Windows 7 operating system provide applications the ability to receive input from multiple contacts. This gives such applications the ability to detect and respond to multiple simultaneous touch points on the application's visible surface. Functionality for this feature in Windows 7 is provided by a new message that reports and tracks touches. The new message, WM_TOUCH, reports the action (up, down, move), position, and an identifier for touch points. Windows Touch messages are generated by Windows and are delivered to windows that register for Windows Touch input.
In addition to the new touch input message, gesture messages have been added to the existing list of window messages. Messaging support for gestures is enabled by a single new window message (WM_GESTURE) that is sent or posted to appropriate application windows when user input is recognized as a gesture. Dedicated API functions encapsulate the details for creation and consumption of this message. This is done because the information associated with the message can change in the future without breaking applications that already consume this message.
In addition to gesture messages, specialized interfaces have been added to the Windows SDK. These interfaces enable advanced support for touch input so that application developers can easily create natural user interfaces. The IManipulationProcessor interface interprets WM_TOUCH messages to raise events that contain translation, rotation, and scale information about a collection of touch points. The IInertiaProcessor interface can be used in conjunction with the IManipulationProcessor interface to enable animation and ensure that objects stay on the user's screen when they are moved.
93ddb68554