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

Author Topic: Del and rm commands not recognized in windows 10 makefile  (Read 5768 times)

0 Members and 1 Guest are viewing this topic.

bahjat

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Windows 7
    Del and rm commands not recognized in windows 10 makefile
    « on: April 20, 2017, 04:56:02 AM »
    I built a makefile using my windows 7 machine, i have tried to build the project using the makefile on my windows 10 machine but run into errors

    Code: [Select]
    Error -- del: No such file or directory
    I opened up command prompt and the del command works, i deleted a few files using it.

    Any ideas why i might be facing this issue, i have made sure that the i have included "C:\Windows\System32" file on my visual studio

    DaveLembke



      Sage
    • Thanked: 662
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Del and rm commands not recognized in windows 10 makefile
    « Reply #1 on: April 20, 2017, 07:15:13 AM »
    It says NO SUCH FILE or DIRECTORY ..... Does the Target Exist that its trying to Delete?

    Hackoo



      Hopeful
    • Thanked: 42
    • Experience: Expert
    • OS: Windows 10
    Re: Del and rm commands not recognized in windows 10 makefile
    « Reply #2 on: April 20, 2017, 08:02:48 AM »
    Hi  ;)
    How did use it ? with a batch file ?
    can you post what did tried as code ?

    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: Del and rm commands not recognized in windows 10 makefile
    « Reply #3 on: April 20, 2017, 10:35:45 AM »
    del is a command internal to cmd.exe. If you are specifying del directly as a command attribute for an <exec> in a project node for MSBuild, it isn't going to work unless there is a executable or batch file available on the system path named "del". you should either use cmd /c del <file>, or just have it run a batch file.
    I was trying to dereference Null Pointers before it was cool.

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: Del and rm commands not recognized in windows 10 makefile
    « Reply #4 on: April 20, 2017, 11:21:17 AM »
    The lack of details is once again slowing down the process.

    But hey...that's the DOS section.
    " Anyone who goes to a psychiatrist should have his head examined. "