Jump to content

I am struggling with some simple commands ...


Recommended Posts

I have been struggling with some simple commands and I do not know why they won't work.

Cleanup.cmd

DEL "%AllUsersProfile%\Desktop\DAEMON Tools.ink"

I have also tried

DEL /Q "%AllUsersProfile%\Desktop\DAEMON Tools.ink"

I have a bunch more which should be very similar, I just need to know why these are not working for me :wacko:

The command is running from a user which is created using nlite. I am struggling with any delete command, can someone help me out

Thanks

EDIT: I have also read a whole bunch of other threads with these issues, but still none of the commands work, is there anything that needs to be before those commands, I mean at the beginning of cleanup.cmd

Edited by Cti
Link to comment
Share on other sites


Great, that worked

Now what is the command to delete windows Explorer

DEL /Q "%AllUsersProfile%\Desktop\Windows Explorer.Ink" this it not working, I am not sure if it considered a shortcut

Thanks for the help

EDIT: what would the command be for deleting this reg entry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\DAEMON Tools

here I saved the reg file

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"ctfmon.exe"="C:\\WINDOWS\\system32\\ctfmon.exe"
"DAEMON Tools"="\"C:\\Program Files\\DAEMON Tools\\daemon.exe\" -lang 1033"

Edited by Cti
Link to comment
Share on other sites

to remove then

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"DAEMON Tools"="\"C:\\Program Files\\DAEMON Tools\\daemon.exe\" -lang 1033"

by adding the - it removes the key

Edited by phkninja
Link to comment
Share on other sites

DEL "%UserProfile%\Start Menu\Programs\Outlook Express.lnk"

To delete registry keys I use a batch file with the following code.

REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v daemon.exe /f

Instead of having to use registry files.

Edited by andrewbell1984
Link to comment
Share on other sites

Well I just added daemon tools to my registry tweaks, these are being applied anyways

REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v daemon.exe /f

now I tried one similar to this and I could not get it to work, I think the mistake was at the end where it says

daemon.exe

DEL "%UserProfile%\Start Menu\Programs\Outlook Express.lnk"

I do have this, what I am trying to do, is removed it from the start menu upper left hand side, normally shows your default browser and email ??

Link to comment
Share on other sites

You can remove the link through the "Taskbar and Start Menu Properties", as you probably know. The easiest way to integrate this into your installation process is to leave the link where it is, run Regshot 1.8.1 (freeware, Google for it) and make a first snapshot. Remove the link through the "Taskbar and Start Menu Properties" and create a second snapshot. Compare the snapshots and you will see which registry key is responsible for displaying the link at the top of the left column of the Start Menu. Export this key from your registry and have the REG-file imported again during the installation via your SVCPACK-file.

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...