UnDeRTaKeR
Jul 5 2004, 11:15 AM
Hello
I'm having a probelm finding the variable of the current place of the batch file....
how can i know the current place of the batch file without knowing where i've executed it...?
any help would be nice... 10x
B3T4
Jul 5 2004, 02:04 PM
huh ???
are u saying u dont know the location of the .bat file ?
UnDeRTaKeR
Jul 5 2004, 02:37 PM
let say i "don't know"!
nuorder
Jul 5 2004, 03:12 PM
could you please explain tell us what your trying to do with it, perhaps most a code snippet??? that would be more helpful to help you i guess
as the 'cd' command will output the current directory to stdout but i guess youve already gone over that or it isnt what you need
UnDeRTaKeR
Jul 5 2004, 03:35 PM
| QUOTE (nuorder @ Jul 5 2004, 03:12 PM) |
could you please explain tell us what your trying to do with it, perhaps most a code snippet??? that would be more helpful to help you i guess as the 'cd' command will output the current directory to stdout but i guess youve already gone over that or it isnt what you need |
10x a lot dude that's what i was looking for... the 'cd' command
BlaStA
Jul 5 2004, 04:54 PM
But by using this command, it could be that someone started your batch from another dir. For example: the batch file (bla.bat) is in c:\batch. The user is in cmd and in c:\windows. Then he types c:\batch\bla.bat. Then the cd-command would output c:\windows and not c:\batch.
By the way, the current dir is also saved in %cd%
B3T4
Jul 5 2004, 10:07 PM
| QUOTE (UnDeRTaKeR @ Jul 5 2004, 03:35 PM) |
| QUOTE (nuorder @ Jul 5 2004, 03:12 PM) | could you please explain tell us what your trying to do with it, perhaps most a code snippet??? that would be more helpful to help you i guess as the 'cd' command will output the current directory to stdout but i guess youve already gone over that or it isnt what you need |
10x a lot dude that's what i was looking for... the 'cd' command
|
im crying
EXPLOiTED
Jul 6 2004, 03:30 AM
lol...be nice
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.