Guest User

Untitled

a guest
May 20th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. The filename, directory name, or volume label syntax is incorrect.
  2.  
  3. #include <stdlib.h>
  4. #include <conio.h>
  5.  
  6. int main (){
  7. system(""C:\Users\Adam\Desktop\pdftotext" -layout "C:\Users\Adam\Desktop\week 4.pdf"");
  8. _getch();
  9. }
  10.  
  11. cd C:UsersAdamDesktop;
  12. pdftotext -layout "week 4.pdf"
  13.  
  14. //system(""D:\test" nospaces "text with spaces"");//gives same error as you're getting
  15. system("""D:\test" nospaces "text with spaces"""); //ok, works
  16.  
  17. system("cmd /S /C ""D:\test" nospaces "text with spaces"""); //also works
Add Comment
Please, Sign In to add comment