The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Please help with writing .bat files in vista

    Discussion in 'Windows OS and Software' started by Acorn, May 6, 2008.

  1. Acorn

    Acorn Notebook Evangelist

    Reputations:
    45
    Messages:
    521
    Likes Received:
    0
    Trophy Points:
    30
    :( This is a silly question but im having trouble writing batch files on vista. Everytime i cd to program files it tells me:
    c:\program
    doesn't exist what am i doing wrong? :confused:
     
  2. sirmetman

    sirmetman Notebook Virtuoso

    Reputations:
    679
    Messages:
    3,291
    Likes Received:
    0
    Trophy Points:
    105
    the path C:\Program Files contains a space in it. Therefore, you have to put it in quotation marks, otherwise the interpreter thinks you are trying to browse to C:\Program with Files as a second parameter.
     
  3. Budding

    Budding Notebook Virtuoso

    Reputations:
    1,686
    Messages:
    3,982
    Likes Received:
    0
    Trophy Points:
    105
    Where have you stored your program? How are you accessing your program? What have you written in your program?
     
  4. AKAJohnDoe

    AKAJohnDoe Mime with Tourette's

    Reputations:
    1,163
    Messages:
    3,017
    Likes Received:
    0
    Trophy Points:
    105
    Alternately, use the environment variables. %ProgramFiles% should do it for you. Type in set at a DOS command prompt and press enter to see them all.
     
  5. The_Observer

    The_Observer 9262 is the best:)

    Reputations:
    385
    Messages:
    2,662
    Likes Received:
    0
    Trophy Points:
    55
    try C:\program~1 or c:\program files
     
  6. surfasb

    surfasb Titles Shmm-itles

    Reputations:
    2,637
    Messages:
    6,370
    Likes Received:
    0
    Trophy Points:
    205
    I like the enviromental variable %ProgramFiles%. Brings me back cozy feelings of designing a startup menu through Config.sys.
     
  7. goofball

    goofball Notebook Deity

    Reputations:
    358
    Messages:
    1,710
    Likes Received:
    0
    Trophy Points:
    55
    Or enclose any path that has spaces with quotations
     
  8. timtravel42

    timtravel42 Notebook Virtuoso

    Reputations:
    827
    Messages:
    2,004
    Likes Received:
    1
    Trophy Points:
    56
    ;) :D :rolleyes: :cool: