1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Interactive commands for XP

Discussion in 'Windows XP' started by blumash, 2005/05/28.

Thread Status:
Not open for further replies.
  1. 2005/05/28
    blumash Lifetime Subscription

    blumash Inactive Thread Starter

    Joined:
    2002/04/30
    Messages:
    158
    Likes Received:
    0
    I m looking for a guide for commands in Windows XP like how to add a new folder , add a new shortcut on desktop etc' , I would like to input those command's in a .BAT file to excute this file.

    Thank's
     
  2. 2005/05/28
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    Paste the following line in the target line of a new shortcut:

    %windir%\hh.exe ms-its:C:\WINDOWS\Help\ntcmds.chm::/ntcmds.htm

    (or just run it from the RUN Window.)

    It will give you all the available commands for XP.
     
    Last edited: 2005/05/28

  3. to hide this advert.

  4. 2005/05/28
    blumash Lifetime Subscription

    blumash Inactive Thread Starter

    Joined:
    2002/04/30
    Messages:
    158
    Likes Received:
    0
    Thank's surferdude2 , I looked at the commands in the listing , most of them r similar to Dos commands, I was looking for example a command that creates a shortcut to the desktop indicating a shortcut to a program on the HDD , couldn't find such things .
     
  5. 2005/05/28
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    That's about all there is to offer without you writing your own programs.

    Batch file are pretty restrictive to the certain commands and protocols that I referenced. Batch files have great power but they have their limitations when it comes to interfacing with a GUI that isn't DOS based.

    In the old days of Win9X, every GUI command had an equivalent DOS command. With the advent of XP, that's no longer the case. XP does not run on DOS. It has a DOS emulator for legacy support but many of the native GUI commands in XP have no Command Line counterpart.

    Taking the example that you mentioned, creating a Desktop Shortcut for a program executable, all that you need to do in the XP GUI is, right-click the exucutable and select "Send To" > Desktop As Shortcut" and it's a done deal. On the other hand, you can't do that from the command line using any means I know of that wouldn't require you to call up a program you have created for assistance.

    Writing your own programs isn't all that hard once you grasp the basics but the basics seem to be the big stumbling point for many people. :)

    Good luck in your quest.
     
    Last edited: 2005/05/28
  6. 2005/06/09
    Alicia J Lifetime Subscription

    Alicia J Geek Member

    Joined:
    2002/01/07
    Messages:
    1,132
    Likes Received:
    1
    cmd wild card?

    Forgive me if this is posted already, my search didn't find it. :)

    I know that if you put cmd in the RUN you get a prompt window in Windows XP (Home Edition SP2). If you don't know the command, for a certain action exactly, how do you get a list of all the possibilities?

    Eg: in RUN: ipconfig /all or Netstat -no

    How could you find these commands, if you didn't know them already?

    Alicia
     
    Last edited: 2005/06/09
  7. 2005/06/09
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,068
    Likes Received:
    396
  8. 2005/06/10
    Alicia J Lifetime Subscription

    Alicia J Geek Member

    Joined:
    2002/01/07
    Messages:
    1,132
    Likes Received:
    1
    Thanks Tony

    Alicia
     
  9. 2005/06/10
    WhitPhil

    WhitPhil Inactive

    Joined:
    2002/01/07
    Messages:
    599
    Likes Received:
    4
    If you wish, you can use scripting to create your shortcut.
     
  10. 2005/06/10
    Alicia J Lifetime Subscription

    Alicia J Geek Member

    Joined:
    2002/01/07
    Messages:
    1,132
    Likes Received:
    1
    Thanks. :)

    Alicia
     
  11. 2005/06/10
    blumash Lifetime Subscription

    blumash Inactive Thread Starter

    Joined:
    2002/04/30
    Messages:
    158
    Likes Received:
    0
    Thank's WhitPhil , Finnely I secssed to get an answer to my question , might be I didn't put my question properly from the begining. Your answer helped me very much , thank's again.
     
  12. 2005/06/10
    blumash Lifetime Subscription

    blumash Inactive Thread Starter

    Joined:
    2002/04/30
    Messages:
    158
    Likes Received:
    0
    I assume those scripts can be written in an myfile.bat ??????
     
  13. 2005/06/10
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    You could use a command line to run VB script from within a batch file and it will work. Just insert the complete path to the VB file as a line in your batch file. Don't forget to use quotation marks if there are embedded spaces in the path.

    It's sort of like putting a wagon wheel on a jet plane but it'll get the job done.

    My point in the first post was to encourage you to learn VB scripting since it can give you much more power as opposed to commingling VBS with batch file script. Perhaps in the process of adapting the example that was posted, you'll get inspired to learn more about VBS and Windows Scripting. That's when the fun starts!
     
  14. 2005/06/11
    blumash Lifetime Subscription

    blumash Inactive Thread Starter

    Joined:
    2002/04/30
    Messages:
    158
    Likes Received:
    0
    Thank's surferdude2 , I made VB script , it's working fine now. Thank's all
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.