2 pushd one for temp and one for location where file is
Posted: 08 Jan 2012 12:21
Im continuing to make my batch game,i get how to save level and money,but i cant get to save nickname,well i know how,but i needed to use
in file ,so it will save file with level and money to temp,here no one will search.But when i try to save nickname with
it saves to temp,and when i try to use
it says it could not find file nick.db,and i need to know how to make it save to same location as bat file.
Code: Select all
pushd "%temp%"
in file ,so it will save file with level and money to temp,here no one will search.But when i try to save nickname with
Code: Select all
echo %nickname% 1>nick.db
it saves to temp,and when i try to use
Code: Select all
set /p var= <nick.db
echo welcome back %var%!
it says it could not find file nick.db,and i need to know how to make it save to same location as bat file.