|
Answer» hi, i would like to make a batch file that shows a text (example hello) but if you open it for the second TIME, you may not see the text again but a text like; you alrady seen it once. Can sombody help me??
if you work under windows xp this should work:
@ECHO off if EXIST %temp%/opened.txt goto opened echo. echo hello echo. goto end >> %temp%/opened.txt ECHO opened :opened echo. echo you allready seen it once echo. goto end :end pause
i hope this helps
(this isn't the best way for doing this i think, but it should give you a start)
greetz
blackberry 8)well, i created something simmilar as an UNINSTALL batch for some dos tools i created. at the end of the batch i simply told it to delete itself.
ex: batch.bat --------------- echo.this is some code echo.this is some more code echo.this is even more code del batch.bat /qTip: To delete the batch file independent from it's name and the 'current' directory use:
del "%~f0" /q
Hope this info is useful :;
|