Please help me make a .BAT file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've been trying to add a few delete commands to my Autoexec.bat file but they aren't recognized when the .bat file runs, both del filename and delete filename fail. Is there any command that will get rid of the annoying pre-login advertizing by ISP NetZero? I followed it to these commands which would have worked in Win95 or Win98 but apparently Windows XP's compatability mode doesn't work

del C:\Program Files\NetZero\pool\*.gi
del C:\Program Files\NetZero\pool\*.sw

I recall these as legit bat file commands. What's the current way? Thanks
 
They don't run in compatability mode unless you start it
command /c something.bat
del "C:\Program Files\NetZero\pool\*.gif"
 
Thanks, but I tried your command line in the Start menu Run window and no change. It flashes by so fast I can't see their error messages. Any suggestions?
 
You need to put the path in quotes or truncate it to del
C:\Progr~1\NetZero\pool\*.gif
It's not seeing the LFN

Kirk said:
I've been trying to add a few delete commands to my Autoexec.bat file but
they aren't recognized when the .bat file runs, both del filename and delete
filename fail. Is there any command that will get rid of the annoying
pre-login advertizing by ISP NetZero? I followed it to these commands which
would have worked in Win95 or Win98 but apparently Windows XP's
compatability mode doesn't work.
 
Try creating as a text file in Notepad and after saving it, rename it to have a .BAT extension. Include a line 'pause' after the command you want to see the result of. Following is a simple batch file I occasionally use to clear many temporary files

@echo of

c
cd c:cd c:\Tem
del /F /S /Q /A:-s *.
cd c
rd /s /q c:\Tem
md c:\Tem

set temp=c:\Tem
set tmp=c:\Tem

exi

Hope this help
LarryS
 
Back
Top