MSFN Forum: [help] whats the command for deleting - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[help] whats the command for deleting how to delete desktop icons and start, program folders Rate Topic: -----

#1 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 20 August 2007 - 07:42 PM

hi
when i install my xp that i created and slipstreamed lots of addons, i get so many files on desktop (obviously prog shortcuts) but i need help on how to delete this items from desktop, and some from start=programs, so on first boot my desktop will look much cleaner. please help me with commands to use for deleting unnecessary shortcuts from desktop and start menu programs as well
thanks in advance


#2 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 21 August 2007 - 06:45 AM

or is there a bat file i can create to do this?

#3 User is offline   Steam Trout 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 11-January 06

Posted 21 August 2007 - 03:06 PM

Create a bat file or use WPIs own Delete command.

#4 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 28 August 2007 - 06:47 AM

View PostSteam Trout, on Aug 21 2007, 10:06 PM, said:

Create a bat file or use WPIs own Delete command.


hi
i have been fiddling about with my wpi v.6.2, and i cant seem to find a way to delete all these desktop and start menu shortcuts. plz if possible show me an example command to use for deleting desktop or start menu shortcuts, so when i install my clean xp, i will have a nice and clean desktop and start menu

thanks in advance

#5 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2007 - 07:23 AM

del /s/q "%userprofile%\desktop\*.lnk"
del /s/q "%allusersprofile%\desktop\*.lnk"

#6 User is offline   zorphnog 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 427
  • Joined: 25-July 06

Posted 28 August 2007 - 07:24 AM

Just delete the .lnk files in contained in the user profile.

%documentsandsettings%\Default\Desktop
%documentsandsettings%\Default\Start Menu

#7 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 28 August 2007 - 10:44 AM

thanks so much for your help, i will try it and will you know if it works,
thank you

#8 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 28 August 2007 - 11:07 AM

hi
i did try it, but i was unsuccesfull. i am logged in as aministrator and dats were my desktop shortcuts are in:
C:\Documents and Settings\Administrator\Desktop
for example i want to delete desktop icons like "orbit, CCleaner, etc.
and thats how i used the above commands:

del /s/q "%userprofile%\desktop\*orbit.lnk"
still it did not work. any other ways or maybe a batch file to do this?

#9 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 28 August 2007 - 11:11 AM

hi i created a batch file and used the same command provided above by kels and it worked perfectly

del /s/q "%userprofile%\desktop\*orbit.lnk"
but strange doesnt work in wpi.

thanks kels now i can run my batch file through wpi, to get rid of unnecasary items.

#10 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 28 August 2007 - 11:15 AM

View PostKelsenellenelvian, on Aug 28 2007, 02:23 PM, said:

del /s/q "%userprofile%\desktop\*.lnk"
del /s/q "%allusersprofile%\desktop\*.lnk"



hi
now that you showed me how to delete desktop shortcuts, please show me what command to use to delete start menu programs folder, for example i want to delete the folder "games" from my start programs. plz help me
thanks again

This post has been edited by shahed26: 28 August 2007 - 11:49 AM


#11 User is offline   DJPro 

  • Member
  • PipPip
  • Group: Members
  • Posts: 115
  • Joined: 15-June 05

Posted 30 August 2007 - 04:23 PM

@ shahed26


RD /S /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Games\"

Put this in a .bat or .cmd file and you can use it in WPI

Good luck

#12 User is offline   lawrenca 

  • Broken by Design
  • PipPip
  • Group: Members
  • Posts: 129
  • Joined: 01-April 04

Posted 03 September 2007 - 08:20 PM

This will also get you there within the commands of WPI.
DELDIR "%AllUsersProfile%\Start Menu\Programs\Games"


#13 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 06 September 2007 - 02:03 PM

Hi
All you people out there, thank you so much for your time and help. all the commands provided above works great! now i can get rid of these junk shortcuts and folders.
thanks again!!!!

#14 User is offline   efrain 

  • Beta Tester?
  • Pip
  • Group: Members
  • Posts: 81
  • Joined: 16-July 07

Posted 08 May 2008 - 03:23 AM

Whew! Thanks for the info. Im lookin for this. Thanks!

#15 User is offline   ghaffar 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 08-September 07
  • OS:XP Pro x86
  • Country: Country Flag

  Posted 13 May 2008 - 11:10 AM

View Postefrain, on May 8 2008, 12:53 PM, said:

Whew! Thanks for the info. Im lookin for this. Thanks!

Thanx a lot.I was searching for this topic and it is really usefull for me. :thumbup

#16 User is offline   laurentiu.lupu 

  • Group: Members
  • Posts: 1
  • Joined: 19-May 06

Posted 04 February 2009 - 08:01 PM

Thanx a lot. :) Thanx a lot. :) Thanx a lot

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy