more 7 issues

Discussion in 'Windows 64 Bit' started by Jason, Nov 13, 2010.

  1. Jason

    Jason Guest

    when i run choice i get a message saying to get compatible program. So I
    tried kixtart but when i try to run a command it opens a cmd window
    without running the command. the start command does this too. What can i
    use to replace these?
     
    Jason, Nov 13, 2010
    #1
    1. Advertisements

  2. Jason

    Jason Guest

    thanks,
    i've edited the bat file to support the format but when I try to run the
    bat file i get the termws.bat is not recognised as the name of cndlet.
     
    Jason, Nov 14, 2010
    #2
    1. Advertisements

  3. Jason

    Jason Guest

    i had to edit the line because the format is different and I had to add
    ".\ to the filename.
     
    Jason, Nov 14, 2010
    #3
  4. Windows PowerShell does not include the current directory in the execution
    path. This is by design, and for the same reasons that UNIX and Linux
    don't-- there is the potential for a security issue. Therefore, if you need
    to execute a program that isn't on your normal PATH ($env:path in PowerShell
    speak), you have to expicitly include the current directory by preceeding
    the program name with the path to it. Hence the need for ".\" before it.

    If all you are trying to do is run a batch file (.BAT), you might find it
    simpler and easier to simply open a command window (CMD.EXE) and run the
    batch file from there. Of course, Windows PowerShell gives you far more
    capabilities and is clearly the future of Windows command line and
    scripting, so you may well prefer to expend the extra effort to start
    getting comfortable in it.
     
    Charlie Russel-MVP, Nov 14, 2010
    #4
  5. Jason

    Jason Guest

    cmd doesn't work - i get error saying i need a compatible program. Plus
    if i was to open cmd first i would do the process manually.
     
    Jason, Nov 16, 2010
    #5
  6. Jason

    Jason Guest

    yes
     
    Jason, Nov 16, 2010
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.