![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Hello Agraham
Thank you for your example, it's very clear for a newbie like me. But unfortunately, it doesn't work. In a dos windows I type : C:\>c:\nqc.exe -Susb -raw 120901 It answers : 54 00 This works In your example, I use the line : Process.Start("c:\nqc.exe" ,"-Susb -raw 120901") Result : the command is launched (I can see the red light on the infrared lego tower), but a 0 is returned. I suppose that your example only gets error codes and that "54 00" is not an error code. So it answers "0" that means "no error". I then tried to redirect the result of the command in a text file : In a dos widow, I type : C:\>c:\nqc.exe -Susb -raw 120901 > sortie.txt Then the file "sortie.txt" contains "54 00" : it works. In your code I then use the line : Process.Start("c:\nqc.exe" ,"-Susb -raw 120901 > sortie.txt") I obtain the number "-13" that indicates an error I presume, because the file "sortie.txt" is neither created, nor modified if it exists... I think I still need help... Pascal.
__________________
Pascal |
|
||||
|
Quote:
![]() Quote:
Code:
Process.Start("cmd", "/c c:\nqc.exe -Susb -raw 120901 > " & AppPath & "\sortie.txt")
|
|
||||
|
Reminds me of the old days when I wrote a mouse driver in assembly for a 286 that couldn't run windows.
ax dx etc ha ha ha
__________________
Endemol ![]() Waste of space ![]() O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1 http://www.taximania.net |
|
||||
|
Thank you Agraham.
your "cmd" works well with a line like : Process.Start("cmd", "/c c:\nqc.exe -Susb -raw 120901 >> c:\sortie.txt") But not with your line with the AppPath statement... It doesn't matter, it's enough for me. Best regards Pascal.
__________________
Pascal |
|
||||
|
Sorry, but with my poor english, I don't understand what you mean with "make a typo in appending the strings".
Anyway, your other idea is good : using the "cmd" only when I need to return a value, and using the standard shell command if not. Pascal.
__________________
Pascal |
|
||||
|
Make a mistake when adding the three strings for the arguments parameter
"/c c:\nqc.exe -Susb -raw 120901 > " & AppPath & "\sortie.txt" Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Codes Unable to run no VISTA | tcgoh | Questions & Help Needed | 4 | 08-19-2008 04:17 PM |
| Shell command | J12345T | Questions & Help Needed | 2 | 06-08-2008 10:49 AM |
| Questions on shell command, and user event, and the 6.30 | dan kabestan | Questions & Help Needed | 2 | 05-15-2008 07:45 PM |
| How to find out that Shell command has finished | petrbury | Questions & Help Needed | 6 | 10-16-2007 08:20 PM |
| what are the codes for CR and LF? | Stellaferox | Questions & Help Needed | 7 | 06-02-2007 08:15 PM |