jaws75 Posted November 18, 2006 Posted November 18, 2006 (edited) I have a problem.I'm making a batch file to create a .rc file for a list of files in a directory.The only problem I have is I can't echo a "|" character.The ascii is 124.this is one of the lines I would like to echo>>diag%x%.rc echo STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CENTER | WS_POPUPHow can it be done, or is there a vb alternative I could use?Thanks in advance. Edited November 19, 2006 by jaws75
LLXX Posted November 18, 2006 Posted November 18, 2006 Tried putting quotes around the whole string and then stripping the quotes off later with sed?Or, this might be a job better done with a sed script.
jdoe Posted November 19, 2006 Posted November 19, 2006 Like this it could work...>>diag%x%.rc echo STYLE DS_FIXEDSYS ^| DS_MODALFRAME ^| DS_CENTER ^| WS_POPUPASCII 94 before |
gunsmokingman Posted November 19, 2006 Posted November 19, 2006 (edited) Try this for your line instead, if this is for a batch file then it will work.jdoe, you beat me for the post because this was what I was going to post also.So I will post the batch script that I tested on the line.@echo Off set x=102>>diag%x%.rc echo STYLE DS_FIXEDSYS ^| DS_MODALFRAME ^| DS_CENTER ^| WS_POPUPecho STYLE DS_FIXEDSYS ^| DS_MODALFRAME ^| DS_CENTER ^| WS_POPUPpause Edited November 19, 2006 by gunsmokingman
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now