Redirection operators in shortcuts


  1. Posts : 2
    Windows 7 Professional
       #1

    Redirection operators in shortcuts


    Hi, I'm trying to add redirection operators (>>, in this case) in a shortcut, but it's not working. It's quite puzzling to tell the truth.

    This works in command line:

    C:\Windows\System32\wbadmin.exe start backup -backuptarget:SOMEPATH -user:SOMEUSER -password:SOMEPASS -allCritical >> c:\logs.txt

    In a shortcut? It gives me an error that the >> operator is not a recognized argument of the wbadmin.exe program.

    Are there shortcut gurus out here that could point me in the right direction?

    Thanks!
      My Computer


  2. Posts : 10,485
    W7 Pro SP1 64bit
       #2

    Welcome to the Seven Forums.

    The redirect chevron is a function of the cmd app.
    You can try to construct your shortcut with a target like this:

    Code:
    C:\Windows\system32\cmd.exe /c dir c: > "%userprofile%\desktop\test.txt"
      My Computer


  3. Posts : 2
    Windows 7 Professional
    Thread Starter
       #3

    That makes sense. Thanks,
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:44.
Find Us