Script to open text file.
On 4/12/2021 1:59 PM, Ivan Denisovich wrote:
I have always checked a command line on the CMD black screen prior to inserting it into a .bak file, and it has always worked.
Well, I ran into a problem with the script to open a text file, say
"C:\users\myfile.txt"
This works when used on the black screen, but not when placed into a .bak file, which is then executed. The file does not open.
Any thoughts on what the problem is? Thanks for all suggestions.
Ivan:
If the filename has spaces or odd characters in it it should be enclosed in
quotation marks. Other than that I can't think of anything. IIRC there used to
be a Usenet group devoted to batch files. You might get better answers there.
John
--
\\\||///
------------------o000----(o)(o)----000o----------------
----------------------------()--------------------------
'' Madness takes its toll - Please have exact change. ''
|