Page 1 of 1

Bat File Copy Problem

Posted: 24 Mar 2021 07:14
by naman2207
Hi,
I am facing one issue.
When ran from an existing batch file the process executes successfully.
But when we copy the original data from that file to a new bat file it doesnt work..
Whats the solution for this?

Re: Bat File Copy Problem

Posted: 24 Mar 2021 11:11
by aGerman
Guessing:
The new script file is saved with the wrong encoding or wrong file extension. Use the notepad editor that ships with Windows, select the "File"->"Save as" menu item, make sure the encoding is set to "ANSI" and the file type is "all files (*.*)". Explicitly write the filename with extension .bat in the file name box.

Steffen