Is there a way to have a .BAT file find a folder such as there desktop no matter what version of windows theyre using?
Printable View
Is there a way to have a .BAT file find a folder such as there desktop no matter what version of windows theyre using?
Anyone?
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
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 =)
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 MSGBOXQuote:
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?
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
Is it possible to launch bat files from a resource file? im guessing not but im not sure. [searching planet source code]
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.Quote:
Originally posted by mastermind94
like, the BAT file is in the ressource.. if that's what u're talking about, yes.
aynone?