Author Topic: curiosity question, what does the number mean ?  (Read 4220 times)

0 Members and 1 Guest are viewing this topic.

Hangman

  • Swamp Rat
  • Posts: 566
curiosity question, what does the number mean ?
« on: March 28, 2011, 12:49:53 PM »
So I am running this code:
Code: [Select]
(setq path "\"c:\\Program Files\\somewhere not that important\\VBScript File.vbs\"")
(startapp "wscript.exe" path)

The file runs, and I get this little number below on the command line, "33".
Quote
Command: (startapp "wscript.exe" path)
33

What does this "33" number mean ?
Hangman  8)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Drafting Board, Mechanical Arm, KOH-I-NOOR 0.7mm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

alanjt

  • Needs a day job
  • Posts: 5353
  • Standby for witty remark...
Re: curiosity question, what does the number mean ?
« Reply #1 on: March 28, 2011, 01:10:02 PM »
Half of 66.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

JohnK

  • Administrator
  • Seagull
  • Posts: 10674
Re: curiosity question, what does the number mean ?
« Reply #2 on: March 28, 2011, 01:10:16 PM »
I have never looked into it further than what the docs say.
Quote
startapp
<snip>

Return Values
An integer greater than 0, if successful, otherwise nil.

Examples
The following code starts the Windows Notepad and opens the acad.lsp file.
Command: (startapp "notepad" "acad.lsp")
33
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

alanjt

  • Needs a day job
  • Posts: 5353
  • Standby for witty remark...
Re: curiosity question, what does the number mean ?
« Reply #3 on: March 28, 2011, 01:13:19 PM »
startapp
 
 
Starts a Windows application

(startapp appcmd[file])
Arguments

appcmd
A string that specifies the application to execute. If appcmd does not include a full path name, startapp searches the directories in the PATH environment variable for the application.

file
A string that specifies the file name to be opened.

Return Values

An integer greater than 0, if successful; otherwise nil.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Hangman

  • Swamp Rat
  • Posts: 566
Re: curiosity question, what does the number mean ?
« Reply #4 on: March 28, 2011, 01:42:50 PM »
Half of 66.
:-D

How 'bout a Third of 99, or perhaps 15x2.2, or it could be the square root of 5x(y-12)(z+3).
 :wink:


startapp

 < ... >

Return Values

An integer greater than 0, if successful; otherwise nil.

So it isn't 33 milliseconds to complete, or 33 characters in the string before it comes across a space, ...
it's just plain ol'  "... greater than 0, if successful; ..."?


:shrug:   Ok.


Thanks guys.
Hangman  8)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Drafting Board, Mechanical Arm, KOH-I-NOOR 0.7mm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

alanjt

  • Needs a day job
  • Posts: 5353
  • Standby for witty remark...
Re: curiosity question, what does the number mean ?
« Reply #5 on: March 28, 2011, 01:45:18 PM »
Half of 66.
:-D

How 'bout a Third of 99, or perhaps 15x2.2, or it could be the square root of 5x(y-12)(z+3).
 :wink:
Now you're just being silly.  8-)
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: curiosity question, what does the number mean ?
« Reply #6 on: March 28, 2011, 02:06:31 PM »
From the secret docs that are not distributed to the public:

Quote
Return Values
An integer greater than 0, if successful, otherwise nil.
...
...
33: application is scanning for a communications device.  Refer to values 60 to 72 for more information.
...
...
69: application is contacting Microsoft of illegal use of product.


Sounds like you've done something wrong - sorry dude.
James Buzbee
Windows 8

Lee Mac

  • Seagull
  • Posts: 12937
  • London, England
Re: curiosity question, what does the number mean ?
« Reply #7 on: March 28, 2011, 03:33:41 PM »
Standard Enum value to signal a successful execution of the application?  /guess

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: curiosity question, what does the number mean ?
« Reply #8 on: March 28, 2011, 06:01:29 PM »
Internally, likely either an enumerated constant or integer equivalent of a bit-coded value.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

JCTER

  • Guest
Re: curiosity question, what does the number mean ?
« Reply #9 on: March 28, 2011, 06:18:24 PM »
It's a sign that they are unaware the answer is 42.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: curiosity question, what does the number mean ?
« Reply #10 on: March 28, 2011, 06:19:00 PM »

:)
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.