Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

How do I remove this folder with my cleanup.cmd file?

- - - - -

  • Please log in to reply
14 replies to this topic

#1
Sgt_Strider

Sgt_Strider

    Senior Member

  • Members
  • PipPipPipPip
  • 529 posts
How can I use my cleanup.cmd file to delete the Online Services folder inside the Program Files folder. Does anyone here know? Thanks.


How to remove advertisement from MSFN

#2
benners

benners

    Senior Member

  • Members
  • PipPipPipPip
  • 692 posts
Have you tried
rd /s /q "C:\Program Files\Online Services"


#3
Sgt_Strider

Sgt_Strider

    Senior Member

  • Members
  • PipPipPipPip
  • 529 posts

Have you tried

rd /s /q "C:\Program Files\Online Services"


Is this command the same as the one that you posted above?

RD /S /Q %systemdrive%\Online Services\

#4
Gee

Gee

    Member

  • Members
  • PipPip
  • 275 posts

Have you tried

rd /s /q "C:\Program Files\Online Services"


Is this command the same as the one that you posted above?

RD /S /Q %systemdrive%\Online Services\


No, your command will yeild this result

rd /s /q c:\Online Services\

Where c: is your install drive.

More accurately, it will yeild this

rd /s /q c:\Online

Because you forgot to wrap quotes around the command, DOS will assume the space is the end of the command and

Services\

is a switch.

Edited by Gee, 14 February 2007 - 12:57 AM.


#5
phkninja

phkninja

    Advanced Member

  • Members
  • PipPipPip
  • 466 posts
Also should be
RD /S /Q "%ProgramFiles%\Online Services\"

not
RD /S /Q %systemdrive%\Online Services\

Unless the folder is actually

c:\Online Services

and not

C:/Program Files\Online Services\

as originally stated

Edited by phkninja, 14 February 2007 - 03:42 AM.


#6
Sgt_Strider

Sgt_Strider

    Senior Member

  • Members
  • PipPipPipPip
  • 529 posts
Thanks for the help guys! I have one final set of questions here. How do I remove the sample music and sample pictures folders in the My Music and My Pictures folder with cleanup.cmd? Thanks!

#7
iTwins

iTwins

    Member

  • Members
  • PipPip
  • 119 posts

Thanks for the help guys! I have one final set of questions here. How do I remove the sample music and sample pictures folders in the My Music and My Pictures folder with cleanup.cmd? Thanks!


heh, are you sure you want to do that!?

I believe even after you deleted it, the system re-creates this directory eventually - pointless!

#8
Sgt_Strider

Sgt_Strider

    Senior Member

  • Members
  • PipPipPipPip
  • 529 posts

Thanks for the help guys! I have one final set of questions here. How do I remove the sample music and sample pictures folders in the My Music and My Pictures folder with cleanup.cmd? Thanks!


heh, are you sure you want to do that!?

I believe even after you deleted it, the system re-creates this directory eventually - pointless!


If I delete it manually, the folders never return.

#9
Sgt_Strider

Sgt_Strider

    Senior Member

  • Members
  • PipPipPipPip
  • 529 posts
bump!

#10
nitroshift

nitroshift

    Beware of programmers with screwdrivers!

  • Super Moderator
  • 2,889 posts
  • OS:Windows 7 x86
  • Country: Country Flag
Basically use the command as stated in the previous posts and give the path to the folders.

 
RD /S /Q "%systemdrive%\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures" 


 
RD /S /Q "%systemdrive%\Documents and Settings\All Users\Documents\My Music\Sample Music" 


#11
Sgt_Strider

Sgt_Strider

    Senior Member

  • Members
  • PipPipPipPip
  • 529 posts

Basically use the command as stated in the previous posts and give the path to the folders.

RD /S /Q "%systemdrive%\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures"

RD /S /Q "%systemdrive%\Documents and Settings\All Users\Documents\My Music\Sample Music"


Sorry for bumping up an old thread, but I just want to let you know that it no longer works under Windows XP SP3. Do you happen to know why it won't work anymore?

#12
krose

krose

    Junior

  • Members
  • Pip
  • 78 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Here is what I use in my cleanup.cmd to remove the shortcuts from my documents and the actual samples from all users. This is with XP SP3.

DEL /Q "%userprofile%\My Documents\My Music\Sample Music.lnk"

DEL /Q "%userprofile%\My Documents\My Pictures\sample pictures.lnk"

RD /S /Q "%AllusersProfile%\Documents\My Pictures\Sample Pictures"

RD /S /Q "%allusersprofile%\Documents\My Music\Sample Music"

RD /S /Q "%allusersprofile%\Documents\My Music\Sample Playlists"


#13
Sgt_Strider

Sgt_Strider

    Senior Member

  • Members
  • PipPipPipPip
  • 529 posts

Here is what I use in my cleanup.cmd to remove the shortcuts from my documents and the actual samples from all users. This is with XP SP3.

DEL /Q "%userprofile%\My Documents\My Music\Sample Music.lnk"

DEL /Q "%userprofile%\My Documents\My Pictures\sample pictures.lnk"

RD /S /Q "%AllusersProfile%\Documents\My Pictures\Sample Pictures"

RD /S /Q "%allusersprofile%\Documents\My Music\Sample Music"

RD /S /Q "%allusersprofile%\Documents\My Music\Sample Playlists"


What's the difference between DEL and RD? I tried to copy and paste the RD commands, but it didn't work.

#14
krose

krose

    Junior

  • Members
  • Pip
  • 78 posts
  • OS:Windows 7 x64
  • Country: Country Flag
RD is the remove directory command to remove an entire directory such as the sample picture folder. The /S switch is required to remove a directory that is not empty, the /Q switch does it silently. DEL is the delete command to delete a single file such as the shortcut to the sample picture folder. When are you running your cleanup.cmd? I run mine with RunOnceEx and it works fine.

#15
chyronn

chyronn

    Still A Noob

  • Members
  • Pip
  • 90 posts
hello, apologies for resurrecting an old thread but i searched and this came up which might be suited to my needs.
i'd like to know what commands/pathways to delete shortcuts from the start menu of a specific user and or all users.
would it be

DEL /Q "%userprofile%\start menu\set menu program and defaults.lnk"

or

DEL /Q "%allusersprofile%\start menu\set menu program and defaults.lnk"

and what if i want to delete a shortcut in the start menu/programs menu?
would that be?

DEL /Q "%allusersprofile%\start menu\programs\shortcut.lnk"





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN