View Single Post
  #3  
Old April 12th 21, 09:29 PM posted to microsoft.public.windowsxp.help_and_support
Ivan Denisovich
external usenet poster
 
Posts: 16
Default Script to open text file.

On Monday, April 12, 2021 at 1:59:06 PM UTC-5, John Dulak wrote:
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:

I think that should be a file with a ".BAT" extension (as in BATCH) file.


With my apologies John, I miswrote. The file is, in fact, ".bat". Any thoughts about the problem I described?

Thanks for posting, and sorry again for my mistake.
Ads