| | |
Trouble Using Command Line Argument
Thread Solved |
i have been using CreatProcess in my program to initialize another program with two command line arguments as
C:\\Documents and Settings\\xyz.exe
and 2
so the code i am using is
but due to spaces b/w Documents and settings it is treating it as 3 arguments.....is there a way to pass arguments with spaces and still
treat them as a single argument???
C:\\Documents and Settings\\xyz.exe
and 2
so the code i am using is
c Syntax (Toggle Plain Text)
CreateProcess ( "C:\\abc.exe", " C:\\Documents and Settings\\xyz.exe 2", NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi );
but due to spaces b/w Documents and settings it is treating it as 3 arguments.....is there a way to pass arguments with spaces and still
treat them as a single argument???
C Syntax (Toggle Plain Text)
CreateProcess ( "C:\\abc.exe", " \"C:\\Documents and Settings\\xyz.exe\" 2", NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi );
![]() |
Similar Threads
- php.ini confusion (PHP)
- traversing backwards thru double linked list (C++)
- trouble with double linked list (C++)
- having some trouble with my project (Java)
- C++ and the Linux API (C++)
Other Threads in the C Forum
- Previous Thread: creating a child process using c program
- Next Thread: Concatenate files
| Thread Tools | Search this Thread |
#include adobe ansi api array asterisks binarysearch changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic execv feet fgets file fork forloop frequency function getlasterror givemetehcodez global grade graphics gtkgcurlcompiling hacking hardware highest histogram i/o include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft motherboard mqqueue mysql number odf opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scanf segmentationfault sequential shape socket socketprograming standard string systemcall threads turboc unix user voidmain() wab windows.h windowsapi






