1

I have created a BAT script file named INIT.BCP.BAT on my desktop that contains (to be simple) only following lines

echo Hello
pause

When I doubleclick on it, Windows 7 displays following message.

enter image description here

If first point character is replaced by minus character so that filename becomes INIT-BCP.bat, the script run correctly.

If BCP is replaced by BCPX, the script run correctly.

If BCP is replaced by DOC or DOCX or DOCZONE, Windows displays previous message.

I have tested the same thing on my PC on Windows 10 and I don't have this problem.

If I run the same script as Administrator, I don't have this problem.

Question:

What is happening ? Why INIT-BCP.BAT is accepted and NOT INIT.BCP.BAT ?

Is this problem linked to specific Windows security policies ?

Complementary informations:

The antivirus software used is McAfee.

On my personal PC at home (Windows 10), I use Bitdefender.

6
  • Windows thinks the file extension is bcp.bat and not .bat ...
    – DavidPostill
    Commented Jan 9, 2019 at 17:00
  • Ok, but why it is not the case on Windows 10 ?
    – schlebe
    Commented Jan 9, 2019 at 17:32
  • No idea. I don't run Windows 10.
    – DavidPostill
    Commented Jan 9, 2019 at 17:33
  • ok. But if you have Windows 7, can you make the test to see if you have same behavior ?
    – schlebe
    Commented Jan 9, 2019 at 20:24
  • Hmm. It works for me. But I don't useBitdefender.
    – DavidPostill
    Commented Jan 9, 2019 at 20:30

0

You must log in to answer this question.

Browse other questions tagged .