Results 1 to 11 of 11

Thread: Bat

  1. #1

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702

    Bat

    Is there a way to have a .BAT file find a folder such as there desktop no matter what version of windows theyre using?

  2. #2

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    Anyone?

  3. #3
    Hyperactive Member mastermind94's Avatar
    Join Date
    Jun 2000
    Location
    Montréal, Canada
    Posts
    441
    does it has to be a BATch file? i know there is a command in batch to find file and a way but i dont know it on the top on my head...

    in a DOS based windows (95/98), just open msdos.sys and it's written the WinDir path.. but, it changes with the language like in english, C:\Windows\Desktop, in french: C:\Windows\Bureau....

    U can use the path variable in DOS but, it needs to be setted in windows or something

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I believe you can type export or env or environment, something to that matter, to see all the currently declared variables. You can access them through %VARIABLENAME% in a batch file. Though, I may have it mixed up with Linux somewhere. YMMV =)
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    ok well forget that.

    new questions

    1. How can I keep a MSDOS window open with a txt file printed in it.

    2. Is there a way to make a msgbox in msdos?

    3. Any good MSDOS tutorials somewhere?

  6. #6

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    Originally posted by duc
    ok well forget that.

    new questions

    1. How can I keep a MSDOS window open with a txt file printed in it.

    2. Is there a way to make a msgbox in msdos?

    3. Any good MSDOS tutorials somewhere?
    never mind the MSGBOX

  7. #7
    Hyperactive Member mastermind94's Avatar
    Join Date
    Jun 2000
    Location
    Montréal, Canada
    Posts
    441
    well, to print a text file u use the TYPE command

    Type MyFile.Txt

    to leave it open, u dont put the exit command in the batch file. this depends on the user's setting too. in the PIF file of ms-dos prompt so, u can do something like that:


    @Echo Off
    Type MyFile.txt
    Echo Press a key to exit
    Pause > Nul
    Exit

    ---

    no u cant display a windows message box from a BATch file. I dunno if u can from a C/C++ for DOS application. (( correct me if i'm wrong ))

    ---

    Good tutorials: go on google, type

    "MS-DOS" +Toturial

    and look thru the results

  8. #8

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    Is it possible to launch bat files from a resource file? im guessing not but im not sure. [searching planet source code]

  9. #9
    Hyperactive Member mastermind94's Avatar
    Join Date
    Jun 2000
    Location
    Montréal, Canada
    Posts
    441
    like, the BAT file is in the ressource.. if that's what u're talking about, yes.

  10. #10

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    Originally posted by mastermind94
    like, the BAT file is in the ressource.. if that's what u're talking about, yes.
    sweet! how? i dont work with resource files alot.

  11. #11

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    aynone?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width