variable looses it's values in a new session
I am using shell scripting in win2k to copy a file to another directory.
The file changes by one every day.
When I set variable aa to value 15 and then I want to change it to 16
by adding one, it does in a session, but when I close and establish a
new session the variable defaults back to 15.
set /a aa = 15
set /a aa = %aa% + 1
The response is 16 but when you cd and cd back echo %aa% is 15 again.
I have aa set up as an environmental variable for administrator in
Is there any way to make a change to a variable in shell scripting and
have it permanently save/remember it?
I have shell scripting by Tim HIll , but it doesn't seem to address
this. Atleast I can't find it. Maybe I should use vb or wsh for this?
Thanks for any help,
Sent via Deja.com http://www.*-*-*.com/
Before you buy.