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,056 of 68,980   
   R.Wieser to All   
   Re: How to create a file withe the name    
   02 May 23 11:51:08   
   
   From: address@is.invalid   
      
   Herbert,   
      
   > But the correct syntax would be:   
      
   "Houston, we have a problem"   
      
   I believe you, but I can't write to an ADS using that double-double-colon   
   way.  I however can using a single double-colon.   
      
   echo hello> test::$DATA   
      
   works, but stuffs the "hello" into the "test" file.   
      
   echo hello> test::$BLA   
      
   doesn't work.  At all.   
      
   echo hello> test:$DATA   
   echo hello> test:$BLA   
      
   works, the "hello" gets stuffed ito the "$DATA" / "$BLA" ADS (the "test"   
   file stays empty.)   
      
   > echo hello>c:xyz:$data  (does work, but not as expected:  xyz:$data:$DATA)   
      
   :-)  That, "but not as expected" is what your thread started with.   
      
   > The real problem is, if you use a "for %%i in (*.*) loop to   
   > write or read alternate data streams and there are file   
   > names with a single letter, you get in trouble.   
      
   True, but not for the reason you made it appear as.  You get in trouble   
   (doesn't work as expected) *regardless* of the "::$DATA" postfix.   
      
   > because then not the file "c" but the file "c." is created (which   
   > gets you into even bigger trouble).   
      
   :-)  Luckily I realized that before trying it out.    
      
   >echo abc>test.txt   
   >echo abc>test.txt::$DATA   
   >   
   >are the same.   
      
    I only realized that that was what happened after posting my   
   previous message (It has been a while after I looked into ADS).   
      
   Regards,   
   Rudy Wieser   
      
   --- 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