Solved Redirection operators in shortcuts

chibislick

New member
Local time
6:46 PM
Messages
2
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

Computer type
PC/Desktop
OS
Windows 7 Professional
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

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
That makes sense. Thanks,
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Professional
Back
Top