Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Running old batch files on Win 10  (Read 4069 times)

0 Members and 1 Guest are viewing this topic.

joeA

    Topic Starter


    Newbie

    • Experience: Familiar
    • OS: Windows 10
    Running old batch files on Win 10
    « on: June 29, 2017, 12:24:52 PM »
    Hard drive died. Got a new PC  with windows 10 installed. The previous batch file routine to compile C++ code worked fine on the old machine. Now they don't work. I get the "external internal command not recognized etc. error message. I assume Win 10 comes with a C++ compiler in Visual Studio  and there is a path statement in the bat file. Also I am familiar with changing the system path in the environment variables but I' :'(m not sure what goes where. Has anyone else had this problem when changing over to wWin 10

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Running old batch files on Win 10
    « Reply #1 on: June 29, 2017, 12:37:39 PM »
    Windows 10 doesn't come with Visual Studio or C++.
    I was trying to dereference Null Pointers before it was cool.

    DaveLembke



      Sage
    • Thanked: 662
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Running old batch files on Win 10
    « Reply #2 on: June 29, 2017, 01:23:15 PM »
    Curious why you need to compile C++ from within a batch file. What IDE did you write your code in, you should be able to compile it there.... or do you have a batch file that dynamically generated the .cpp and then called to a command shell level compiler and then called to the EXE that is produced to execute it with dynamic info as part of the generated .cpp file?   :-\

    Interested in if you share your batch here what it actually does...

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Running old batch files on Win 10
    « Reply #3 on: June 29, 2017, 02:02:31 PM »
    I'd guess that it is effectively a makefile that is stored with the source code, and runs the cl compiler.
    I was trying to dereference Null Pointers before it was cool.

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Running old batch files on Win 10
    « Reply #4 on: June 29, 2017, 02:40:11 PM »
    He moght want to see th is:
    https://www.visualstudio.com/vs/visual-studio-express/
    Quote
    Try out Visual Studio Community for a fully-featured and extensible IDE; An updated alternative to Visual Studio Express.
    It incldues a C++ IDE.


    Hackoo



      Hopeful
    • Thanked: 42
    • Experience: Expert
    • OS: Windows 10
    Re: Running old batch files on Win 10
    « Reply #5 on: July 05, 2017, 06:27:10 PM »
    Can you post the source code of your batch file and explain more what's your issues ?
    Thank you !