|
Thread: Bat
-
Mar 31st, 2003, 07:25 PM
#1
Thread Starter
Fanatic Member
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?
-
Apr 2nd, 2003, 10:32 PM
#2
Thread Starter
Fanatic Member
-
Apr 3rd, 2003, 11:55 AM
#3
Hyperactive Member
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
-
Apr 3rd, 2003, 04:01 PM
#4
Good Ol' Platypus
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)
-
Apr 3rd, 2003, 10:27 PM
#5
Thread Starter
Fanatic Member
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?
-
Apr 4th, 2003, 11:36 AM
#6
Thread Starter
Fanatic Member
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
-
Apr 4th, 2003, 12:03 PM
#7
Hyperactive Member
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
-
Apr 6th, 2003, 02:55 PM
#8
Thread Starter
Fanatic Member
Is it possible to launch bat files from a resource file? im guessing not but im not sure. [searching planet source code]
-
Apr 6th, 2003, 07:04 PM
#9
Hyperactive Member
like, the BAT file is in the ressource.. if that's what u're talking about, yes.
-
Apr 7th, 2003, 03:57 PM
#10
Thread Starter
Fanatic Member
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.
-
Jun 21st, 2003, 12:36 AM
#11
Thread Starter
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|