Shell call produces odd numbers


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Shell call produces odd numbers

  1. #1
    Paul Guest

    Shell call produces odd numbers


    I need to be able to detect and have names of the
    directories of substitute drives.

    This is normally done by calling 'subst' command without
    any parametres. The result might look like 'u:/: c:\temp'.

    I need to associate a string to this result, but using
    SubDrive = Shell("C:\WINNT\system32\subst.exe")
    produces numbers in the list box. These numbers vary from 800 to 2300.

    Anyone know what these numbers represent, and, what is the correct method
    of accessing the result of a shell call.

    Thanks very much.

  2. #2
    Jon Oliver Guest

    Re: Shell call produces odd numbers


    "Paul" <austech@rocknet.net.au> wrote in message
    news:3c6279d5$1@10.1.10.29...
    >
    > I need to be able to detect and have names of the
    > directories of substitute drives.
    >
    > This is normally done by calling 'subst' command without
    > any parametres. The result might look like 'u:/: c:\temp'.
    >
    > I need to associate a string to this result, but using
    > SubDrive = Shell("C:\WINNT\system32\subst.exe")
    > produces numbers in the list box. These numbers vary from 800

    to 2300.
    >
    > Anyone know what these numbers represent, and, what is the

    correct method
    > of accessing the result of a shell call.


    Put your cursor on the Shell keyword in your code. Press F1.



  3. #3
    Sue Harsevoort Guest

    Re: Shell call produces odd numbers

    I'm not sure how to get what you are after, but The Shell Function returns
    the program's task ID so that is what the numbers that you are getting are.

    Sue

    "Paul" <austech@rocknet.net.au> wrote in message
    news:3c6279d5$1@10.1.10.29...
    >
    > I need to be able to detect and have names of the
    > directories of substitute drives.
    >
    > This is normally done by calling 'subst' command without
    > any parametres. The result might look like 'u:/: c:\temp'.
    >
    > I need to associate a string to this result, but using
    > SubDrive = Shell("C:\WINNT\system32\subst.exe")
    > produces numbers in the list box. These numbers vary from 800 to 2300.
    >
    > Anyone know what these numbers represent, and, what is the correct method
    > of accessing the result of a shell call.
    >
    > Thanks very much.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center