home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 68,055 of 68,980   
   Herbert Kleebauer to R.Wieser   
   Re: How to create a file withe the name    
   02 May 23 11:14:18   
   
   From: klee@unibwm.de   
      
   On 02.05.2023 10:30, R.Wieser wrote:   
   > Herbert,   
   >   
   >> :: To create a file with the name "test." on a NTFS   
   >> :: file system use (testet in WIN10):   
   >>   
   >> echo hello world>test.::$DATA   
   >   
   > I just found/realized you applied a two tricks there : Besides placing a   
   > colon at the end of the "test" filename the "::$DATA" *looks* like an   
   > alternate data stream reference, but the "hello world" text ends up in the   
   > "test." file (and not the ADS).    At least, not on my XP OS.   
      
   filename:alternate_stream_name:   
   if you omit the stream name, the standard stream is used   
      
   echo abc>test.txt   
   echo abc>test.txt::$DATA   
      
   are the same.   
      
      
   You can omit the $DATA here:  echo abc>test.txt:xzz:   
   but not here:                 echo abc>test.txt::   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca