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 66,996 of 68,980    |
|    paul.hermeneutic@gmail.com to All    |
|    -Command does not run    |
|    04 Aug 17 07:52:44    |
   
   Running the following from cmd.exe appears to do nothing. No output. No error   
   message.   
      
   C:>powershell -NoProfile -Command "& { Get-ChildItem -Path 'C:/src/t/' ^|   
   Remove-Item -Recurse -WhatIf }"   
      
   Removing the invocation operator appears to simply make the command be printed.   
      
   C:>powershell -NoProfile -Command "{ Get-ChildItem -Path 'C:/src/t/' ^|   
   Remove-Item -Recurse -WhatIf }"   
    Get-ChildItem -Path 'C:/src/t/' ^| Remove-Item -Recurse -WhatIf   
      
   The pipe (VERTICAL BAR) character is escaped. What's going on here?   
      
   --- 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