Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Redirection operators in shortcuts

06 Apr 2014   #1

Windows 7 Professional
 
 
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 System SpecsSystem Spec
.

06 Apr 2014   #2

W7 Pro SP1 64bit
 
 

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 System SpecsSystem Spec
06 Apr 2014   #3

Windows 7 Professional
 
 

That makes sense. Thanks,
My System SpecsSystem Spec
.


Reply

 Redirection operators in shortcuts




Thread Tools



Similar help and support threads for2: Redirection operators in shortcuts
Thread Forum
Search - Find More with Filters and Operators Tutorials
ATM operators eye Linux as alternative to Windows XP Security News
My Documents redirection bug Customization
Folder Redirection. Network & Sharing
Folder redirection Network & Sharing

Our Sites

Site Links

About Us

Find 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 11:09 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33