hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

UnDeRTaKeR
Hello biggrin.gif
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
huh ???

are u saying u dont know the location of the .bat file ?
UnDeRTaKeR
let say i "don't know"!
nuorder
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
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
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
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
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.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.