Computer Hope

Microsoft => Microsoft Windows => Windows 10 and 11 => Topic started by: bahjat on April 20, 2017, 04:56:02 AM

Title: Del and rm commands not recognized in windows 10 makefile
Post by: bahjat 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
Title: Re: Del and rm commands not recognized in windows 10 makefile
Post by: DaveLembke on April 20, 2017, 07:15:13 AM
It says NO SUCH FILE or DIRECTORY ..... Does the Target Exist that its trying to Delete?
Title: Re: Del and rm commands not recognized in windows 10 makefile
Post by: Hackoo 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 ?
Title: Re: Del and rm commands not recognized in windows 10 makefile
Post by: BC_Programmer 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.
Title: Re: Del and rm commands not recognized in windows 10 makefile
Post by: patio 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.