title: Cannot build C program from Windows batch script
body: <p>I want to build a C program using a Windows batch script, but the compiler gets a fatal error.</p>
  
  <p>I have a Windows 10 computer and using Microsoft C/C++ Compiler.</p>
  
  <p>the batch script that I am running is called <code>build.bat</code> and the content is:</p>
  
  <pre><code>SET PROJECT_COMPILER=cl
  
  SET HOME_DIRECTORY=%~dp0
  SET PROJECT_SRC=%HOME_DIRECTORY%src\
  SET PROJECT_BIN=%HOME_DIRECTORY%bin\
  SET PROJECT_INCLUDE=%HOME_DIRECTORY%include\
  
  %PROJECT_COMPILER% "%PROJECT_SRC%*.c" /I"%PROJECT_INCLUDE%" /link 
  /out:"%PROJECT_BIN%out.exe"
  
  del /f .\*.obj
  </code></pre>
  
  <p>and the output that I get from the line <code>%PROJECT_COMPILER% "%PROJECT_SRC%*.c" /I"%PROJECT_INCLUDE%" /link /out:"%PROJECT_BIN%out.exe"</code> is:</p>
  
  <pre><code>C:\Users\Andrea Nardi\Documents\C project\test_project&gt;cl "C:\Users\Andrea Nardi\Documents\C project\test_project\src\*.c"         
  /I"C:\Users\Andrea Nardi\Documents\C project\test_project\include\" /link 
  /out:"C:\Users\Andrea Nardi\Documents\C project\test_project\bin\out.exe"
  Microsoft (R) C/C++ Optimizing Compiler Version 19.11.25507.1 for x64
  Copyright (C) Microsoft Corporation.  All rights reserved.
  
  cl : Command line warning D9024 : unrecognized source file type 
  'Nardi\Documents\C', object file assumed
   cl : Command line warning D9024 : unrecognized source file type 
   'project\test_project\bin\out.exe', object file assumed
   main.c
  Microsoft (R) Incremental Linker Version 14.11.25507.1
  Copyright (C) Microsoft Corporation.  All rights reserved.
  
  /out:main.exe
  main.obj
  Nardi\Documents\C
  project\test_project\bin\out.exe
  LINK : fatal error LNK1181: cannot open input file 'Nardi\Documents\C.obj'
  </code></pre>