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.
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.
assoc .bat.bat=batfile
ftype batfilebatfile="%1" %*
On Mon, 12 Apr 2021 13:29:21 -0700 (PDT), Ivan Denisovich wrote:I will try both suggestions. Many thanks to you & john for your help.
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.It could probably due to broken file type association. Check with the ASSOC and FTYPE commands. e.g.
assoc .bat.bat=batfile
ftype batfilebatfile="%1" %*
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 286 |
Nodes: | 16 (3 / 13) |
Uptime: | 91:49:32 |
Calls: | 6,498 |
Calls today: | 9 |
Files: | 12,100 |
Messages: | 5,277,846 |