Link to home
Start Free TrialLog in
Avatar of cbutton
cbuttonFlag for United States of America

asked on

Redirection in Shell function

I want to sort a text file from within Visual Basic. I tried:
x = Shell("sort filea > fileb"), but I get an error saying that the file ">" can't be found. Obviously it doesn't recognize the > as a redirection.
How can i accomplish the sort?
ASKER CERTIFIED SOLUTION
Avatar of ameba
ameba
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cbutton

ASKER

I don't realy understand why, but that's okay. It works just fine.