if exists, [file] was unexpected at this time.
- This topic has 4 replies, 4 voices, and was last updated 3 years, 2 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Home › Forums › Scripting › General Scripting › if exists, [file] was unexpected at this time.
hey guys
im trying to run a command to uninstall some novell products apon logon
@echo off
REM REMOVE NOVELL PRODUCTS
if exists c:Novellremoval.txt goto :exit else goto :uninstall
:uninstall
:Run Windows XP specific commands here.
echo Windows XP
REM NCL
CALL \fileserverNovelluninstallAcu.exe
REMzen works
MsiExec.exe /x{7878B1D4-B2CB-4EA8-9A0A-7E0575D23B96} /quiet
echo Novell client removed on %date% on %time% by %username% > c:Novellremoval.txt
goto :exit
:exit
[/CODE]
but when i run the .bat i get the “c:Novellremoval.txt was unexpected at this time.”
any help wil be muchly appreciated
thanks[CODE]
@echo off
REM REMOVE NOVELL PRODUCTS
if exists c:Novellremoval.txt goto :exit else goto :uninstall
:uninstall
:Run Windows XP specific commands here.
echo Windows XP
REM NCL
CALL \fileserverNovelluninstallAcu.exe
REMzen works
MsiExec.exe /x{7878B1D4-B2CB-4EA8-9A0A-7E0575D23B96} /quiet
echo Novell client removed on %date% on %time% by %username% > c:Novellremoval.txt
goto :exit
:exit
[/CODE]
but when i run the .bat i get the “c:Novellremoval.txt was unexpected at this time.”
any help wil be muchly appreciated
thanks
You must be logged in to reply to this topic.
Find out more about our cookie policy here.