Jump to content

batch file wont work correctly


Recommended Posts

moin moin

sorry for my bad engl.

i have trouble with a *cmd file

here the content

1)

cmdow @ /HID

net user "Hilfeassistent" /delete

NET USER "ASPNET" /active:no

2)

DEL "%systemroot%\*.bmp"

DEL "%systemroot%\Web\Wallpaper\*.jpg"

DEL "%systemroot%\system32\dllcache\*.scr"

DEL "%systemroot%\system32\*.scr"

3)

DEL "%ALLUSERSPROFILE%\Startm~1\Windows Update.lnk"

DEL "%ALLUSERSPROFILE%\Startm~1\Programmzugriff und -standards.lnk"

DEL "%ALLUSERSPROFILE%\Startm~1\Windows-Katalog.lnk"

DEL "%ALLUSERSPROFILE%\Startm~1\Windows-Katalog.lnk"

DEL "%ALLUSERSPROFILE%\desktop\NEROST~1.LNK" /F /Q

DEL "%USERPROFILE%\Startm~1\progra~1\outloo~1.lnk" /F /Q

rem internetexplorer link loeschen

DEL "%USERPROFILE%\Startm~1\progra~1\*.lnk" /F /Q

REM DEL "%USERPROFILE%\Startm~1\progra~1\intern~1.lnk" /F /Q

DEL "%allUSERsPROFILE%\Startm~1\progra~1\*.LNK" /F /Q

rem alle verknuepfungen loeschen

DEL "%allUSERsPROFILE%\Startm~1\progra~1\zubehr~1\*.LNK" /F /Q

DEL "%USERPROFILE%\Startm~1\progra~1\zubehr~1\*.LNK" /F /Q

rem xcopy /y /s /e /c /i "%allUSERsPROFILE%\Startm~1\progra~1\nero\Nero 6 Enterprise Edition\NEROBU~1.lnk" "%allUSERsPROFILE%\Startm~1\Nero 6 Enterprise Edition\"

rem nero 6 nach startmenue kopieren:

xcopy /y /s /e /c /i "%allUSERsPROFILE%\Startm~1\progra~1\nero\Nero 6 Enterprise Edition\NEROBU~1.lnk" "%allUSERsPROFILE%\Startm~1"

rem nero verknuepfungen loeschen:

rd /s /q "%allUSERsPROFILE%\Startm~1\progra~1\nero"

rem kerio nach allusers kopieren

xcopy /y /s /e /c /i "%USERPROFILE%\Startm~1\progra~1\kerio\PERSON~1\*.lnk" "%allUSERsPROFILE%\Startm~1\Kerio"

rem: verknuepfungen loeschen

DEL "%allUSERsPROFILE%\Startm~1\kerio\HELP(C~1.LNK" /F /Q

DEL "%allUSERsPROFILE%\Startm~1\kerio\HELP(E~1.LNK" /F /Q

DEL "%allUSERsPROFILE%\Startm~1\kerio\HELP(G~1.LNK" /F /Q

rem verz kerio bei defaultuser loeschen

rd /s /q "%USERPROFILE%\Startm~1\progra~1\kerio"

1) works

2) works too

but the part 3 wont work correct :(

only if i run the *.cmd again

i see no errors in the code

speziell the green market code segments wont work

but the purple works

Link to comment
Share on other sites


the longname by

xcopy /y /s /e /c /i "%allUSERsPROFILE%\Startm~1\progra~1\nero\Nero 6 Enterprise Edition\NEROBU~1.lnk" "%allUSERsPROFILE%\Startm~1"

=> xcopy ask me if this a folder or file

i dont know to disable this dump question

its a link, but i think xcopy becomse trouble :wacko:

the /Q switsch is allready build in

i have written:

the only thing was wont work are the greenlines

only if a run the *cmd again ( *.cmd only a placeholder here :) )

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...