Page 1 of 1 1
Topic Options
#124147 - 2004-07-30 12:09 AM del file from startup
Anonymous
Unregistered


Hello,
I am new to kixtart. I am trying to write a command to remove a file from teh startup, and the desktop through the login script. i copy these file sto the dos command and run them and tehy work? I ust be writting something wrong for kixtart. Here are the two line I have written del "%userprofile%\startm~1\programs\startup\update.url"
del "%userprofile%\desktop\update.url"

please help. thank you I will check here but please e-mail me at eberhardt@zektec.com thank you so much

Top
#124148 - 2004-07-30 02:47 AM Re: del file from startup
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Code:

del "%userprofile%\startm~1\programs\startup\update.url"
? 'Error '+@ERROR+' - '+@SERROR
del "%userprofile%\desktop\update.url"
? 'Error '+@ERROR+' - '+@SERROR


will tell you why the comands fails.
_________________________
There are two types of vessels, submarines and targets.

Top
#124149 - 2004-07-30 02:54 AM Re: del file from startup
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
First off, you are mixing short and long name formats! Second, you should never assume any part of the path.

Just read the paths from the reg.
Code:
break on
$RegKey = 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders'

$Startup = ReadValue($RegKey,'Startup')
$Desktop = ReadValue($RegKey,'Desktop')

$Startup ?
$Desktop ?

;Del $Startup + '\file.ext'
;Del $Desktop + '\file.ext'

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#124150 - 2004-07-30 05:52 PM Re: del file from startup
Anonymous
Unregistered


thank you I ended up getting it. Thank you so much for your response
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 809 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.028 seconds in which 0.011 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org