I have a one-line DOS script called ed.bat that starts UltraEdit with whatever file name I enter. The script looks like this:
start "c:\program files\ultraedit\uedit32" "%1"
From the command prompt I type "ed filename.txt" and edits the filename.
I used the "start" command so that it will give me back control of my DOS window instead of tying it up until I finish editing the file.
That used to work great on my old computer, but now I have a new Windows XP computer and now it is acting up. Sometimes it starts a second DOS prompt and never edits the file. Sometimes it opens the file IN NOTEPAD!
I can remove the word "start" and that does edit the correct file in UltraEdit, but it ties up my command prompt.
I don't get it. What's the best way to get from a DOS command prompt to edit a file and not lose control of the DOS prompt?
start "c:\program files\ultraedit\uedit32" "%1"
From the command prompt I type "ed filename.txt" and edits the filename.
I used the "start" command so that it will give me back control of my DOS window instead of tying it up until I finish editing the file.
That used to work great on my old computer, but now I have a new Windows XP computer and now it is acting up. Sometimes it starts a second DOS prompt and never edits the file. Sometimes it opens the file IN NOTEPAD!
I can remove the word "start" and that does edit the correct file in UltraEdit, but it ties up my command prompt.
I don't get it. What's the best way to get from a DOS command prompt to edit a file and not lose control of the DOS prompt?