If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to create an empty file in a script?
As a marker that some script has processed a directory I want to create
an empty file in that directory. In unix I would use a "touch filename" command to do that. On windows I tried echo "" filename but that creates a file containing two ". How do I create a truly empty (i.e. 0 Bytes long) file in a windows batch file? Michael |
Ads |
#2
|
|||
|
|||
How to create an empty file in a script?
Michael Moser wrote ::
As a marker that some script has processed a directory I want to create an empty file in that directory. In unix I would use a "touch filename" command to do that. On windows I tried echo "" filename but that creates a file containing two ". How do I create a truly empty (i.e. 0 Bytes long) file in a windows batch file? Michael Echo. File Good Luck, Ayush. -- Windows XP: http://www.microsoft.com/windows/usi...p/default.mspx |
#3
|
|||
|
|||
How to create an empty file in a script?
Michael Moser wrote ::
As a marker that some script has processed a directory I want to create an empty file in that directory. In unix I would use a "touch filename" command to do that. On windows I tried echo "" filename but that creates a file containing two ". How do I create a truly empty (i.e. 0 Bytes long) file in a windows batch file? Echo. Filename will not create an empty file.. to create a true empty file, use : type nul FileName Good Luck, Ayush. -- XP-Tips [Create a keyboard shortcut to open a folder] : http://www.microsoft.com/windowsxp/u...rshortcut.mspx |
#4
|
|||
|
|||
How to create an empty file in a script?
Michael Moser rambled on in microsoft.public.windowsxp.customize:
As a marker that some script has processed a directory I want to create an empty file in that directory. In unix I would use a "touch filename" command to do that. On windows I tried echo "" filename but that creates a file containing two ". How do I create a truly empty (i.e. 0 Bytes long) file in a windows batch file? Michael C:\cd storage C:\Storagemoreempty.txt |
Thread Tools | |
Display Modes | |
|
|