Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sergelaurent

    Help needed to open html file!!!

    thaks bong!
  2. sergelaurent

    Help needed to open html file!!!

    I want to open an html file with internet explorer using a tcl command. I have tried the following command without success exec d:\toto.html Does someone knows how to open an html file?
  3. sergelaurent

    Problem with modulus!!!

    sorry guys, i did not give a clear description!!! I wanted to have the (abs) solution!!! Thanks a lot
  4. sergelaurent

    Problem with modulus!!!

    For exemple; set toto [expr 5 - 10] toto's value would be -5!!! I want to have the modulus of toto!!! Can someone tell me hos I can do this?
  5. sergelaurent

    PC information?

    registry get "HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0\ProcessorNameString" toto puts $toto; I have tried this code, but I got: invalid command name "registry"invalid command name "registry" while executing "registry get...
  6. sergelaurent

    PC information?

    Hi, I am trying to collect information about the PC to write it back in my report!!! Is there a tcl command to collect these information? (information such as CPU, size of memory, size of hard disk, os used....)
  7. sergelaurent

    conversion from decimal to hexadecimal!!!

    thanks a lot feherke!!
  8. sergelaurent

    conversion from decimal to hexadecimal!!!

    I have the following code: set PIX_ACPPBOX_ERROR_BASE 0x100000; set PIX_TOO_MANY_OFFSET_REF [expr $PIX_ACPPBOX_ERROR_BASE | 0x108]; while executing the logical or command, the returned result is in decimal format!!! The problem is that i am using a switch where only hexadecimal values are...
  9. sergelaurent

    errorInfo?

    Thanks a lot bong for your help!!! I have changed pieces of the interpreter to return TCL_OK and I can read the error message from errorcode!!!!
  10. sergelaurent

    errorInfo?

    It may seem a silly question but how do you use exec with a command? And how do you do to redirect the output to set a variable?
  11. sergelaurent

    errorInfo?

    This command is used to open a communication channel with our apparatus!! My goal is to determine if this command works every time!!! The latter may fails if the connections are not done properly, the link cable used is not appropriate or the cable is not connected!!! So when I'm using this...
  12. sergelaurent

    errorInfo?

    In fact, I am using a modified interpreter where we have added some special commands which would help us to pilote our apparatus!!!! In fact I am trying to catch information from returned errors of one of our own command!!! While incorporating these commands, we have brought changes to the...
  13. sergelaurent

    errorInfo?

    You are right Bob!!! However, I am using an interpreter where the catch command doesn't works!!!! So I am trying to find another command which would allow me to do the same thing as the catch command!!!! I want to catch the information from returned errors whithout aborting my script!!! Is...
  14. sergelaurent

    errorInfo?

    I want to catch the error code returned by a command whenever it fails without using the catch command!!!!!! My code is as follows: set resp [open .....] When the open command fails, I cannot read the error information returned by this command. I don't want to use the catch command!!! I found...
  15. sergelaurent

    Deleting files??,

    Thanks for the tips bong!! However, I am getting a problem when ther is no *.txt files in the folder!!! The problem is that I have to do this in several folders and sometimes there are *.fxd files only and sometimes both!!! So, I need something which works in all cases!!! Can you help me to...
  16. sergelaurent

    Deleting files??,

    I have a folder container several files, let say: toto.txt titi.fxd fim.txt yot.fxd and fifi.log I want to do delete all files with the .txt and .fxd extension!!! how can i do this automatically?
  17. sergelaurent

    Problem with lists => parameter?

    #I have variable containing : #array set toto [list {0} {} {1} {tom tim tam} {2} {fom fim fam}] #I am using a function where I would like to use toto as an #input parameter!!! proc essai {toto}{ ........... } essai $toto #When executing this command, I got an error message telling #me that it...
  18. sergelaurent

    Problem with arrays!!!

    I have the following code: #I have variable containing : #array set toto [list {0} {} {1} {tom tim tam} {2} {fom fim fam}] set var [lindex toto {2 1}] puts $var I expected to get "fom" but i got a bug!!! Can someone tell me how I can extract information from my list "toto"?
  19. sergelaurent

    problem with switch

    I have the following script!!! I expected that the getproc function returns "coucou" but it returns "et non". /***************************************************/ set toto 156 proc getproc {chiffre} { switch $chiffre { $toto {set phrase "coucou"} default {set phrase "et...
  20. sergelaurent

    timing!!

    Thanks!!! However, i don't want to take the time to execute a script but the time to execute one of the commands in the script!!!! is there another solution apart from taking the time before and after the command!!!

Part and Inventory Search

Back
Top