when i enter in "cmdline.exe open c:\test.txt", it runs fine, when i run £cmdline.exe new c:\newtext.txt" it trys to open c:\newfile.txt? is this because im trying to use a string in the "if(argv[1] = ..." part??Code:if(argc>2) { if(argv[1]="open") { ... } else if(argv[1]="new") { ... } }
Thanks![]()




Reply With Quote