Hi i got something new that i'm trying to figger out. As the title says... i want to get Windows Explorer to start in C automaticly. I know how to make this happen manually by changing the target in the shortcut, or atleast by adding: /n,/e,c: to the end of the already excisting target path.
But how can i make this happen during my unattended CD, maybe with a registry tweak or a cmd file that changes the target path for me.
How can i make this happen? If possible?
It is enough if i can only change the target file of the Windows Explorer link in the Start Menu, i can then copy that link to my desktop and quicklaunch.
Hope this is possible...
Thanks in advance, cheers!
Page 1 of 1
Make Windows Explorer Start In C Automaticly
#2
Posted 08 March 2005 - 06:12 PM
Just put the shortcut on your CD.
And copy it back using copy or move or xcopy from a batch file.
And copy it back using copy or move or xcopy from a batch file.
#3
Posted 08 March 2005 - 06:34 PM
I create my link using shortcut.exe (do a search) with the command;
shortcut.exe /F:"%AllUsersProfile%\Start Menu\File Management\Windows Explorer.lnk" /A:C /T:"%SystemRoot%\explorer.EXE" /I:explorer.EXE,1 /R:1 /P:"/n, /e, /select, C:\"
#4
Posted 08 March 2005 - 07:57 PM
I do mine with vbScript like this:
'Create Windows Explorer Desktop icon
Set Shell = CreateObject("WScript.Shell")
DesktopPath = Shell.SpecialFolders("AllUsersDesktop")
Set link = Shell.CreateShortcut(DesktopPath & "\Explorer.lnk")
link.Arguments = "/n,/e,c:\"
link.Description = "Explorer link"
link.HotKey = "CTRL+ALT+SHIFT+E"
link.IconLocation = "%SystemRoot%\explorer.exe"
link.TargetPath = "%SystemRoot%\explorer.exe"
link.WindowStyle = 1
link.WorkingDirectory = "%HOMEDRIVE%%HOMEPATH%"
link.Save
'Create Windows Explorer Quick Launch icon
Const OverwriteExisting = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FolderExists("C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\") Then
objFSO.CopyFile "C:\Documents and Settings\All Users\Desktop\Explorer.lnk" , "C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch\", OverwriteExisting
Else
Set objFolder = objFSO.CreateFolder("C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch\")
objFSO.CopyFile "C:\Documents and Settings\All Users\Desktop\Explorer.lnk" , "C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch\", OverwriteExisting
End If
If objFSO.FolderExists("C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\") Then
objFSO.CopyFile "C:\Documents and Settings\All Users\Desktop\Explorer.lnk" , "C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\", OverwriteExisting
Else
Set objFolder = objFSO.CreateFolder("C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\")
objFSO.CopyFile "C:\Documents and Settings\All Users\Desktop\Explorer.lnk" , "C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\", OverwriteExisting
End If
objFSO.CopyFile "C:\Documents and Settings\All Users\Desktop\Explorer.lnk" , "C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch\", OverwriteExisting
'Create Windows Explorer Desktop icon
Set Shell = CreateObject("WScript.Shell")
DesktopPath = Shell.SpecialFolders("AllUsersDesktop")
Set link = Shell.CreateShortcut(DesktopPath & "\Explorer.lnk")
link.Arguments = "/n,/e,c:\"
link.Description = "Explorer link"
link.HotKey = "CTRL+ALT+SHIFT+E"
link.IconLocation = "%SystemRoot%\explorer.exe"
link.TargetPath = "%SystemRoot%\explorer.exe"
link.WindowStyle = 1
link.WorkingDirectory = "%HOMEDRIVE%%HOMEPATH%"
link.Save
'Create Windows Explorer Quick Launch icon
Const OverwriteExisting = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FolderExists("C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\") Then
objFSO.CopyFile "C:\Documents and Settings\All Users\Desktop\Explorer.lnk" , "C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch\", OverwriteExisting
Else
Set objFolder = objFSO.CreateFolder("C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch\")
objFSO.CopyFile "C:\Documents and Settings\All Users\Desktop\Explorer.lnk" , "C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch\", OverwriteExisting
End If
If objFSO.FolderExists("C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\") Then
objFSO.CopyFile "C:\Documents and Settings\All Users\Desktop\Explorer.lnk" , "C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\", OverwriteExisting
Else
Set objFolder = objFSO.CreateFolder("C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\")
objFSO.CopyFile "C:\Documents and Settings\All Users\Desktop\Explorer.lnk" , "C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\", OverwriteExisting
End If
objFSO.CopyFile "C:\Documents and Settings\All Users\Desktop\Explorer.lnk" , "C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch\", OverwriteExisting
#5
Posted 09 March 2005 - 03:00 AM
Oke thanks, i'll try this out when i'm back home tonight...
Cheers!
Cheers!
#6
Posted 09 March 2005 - 05:37 AM
To start explorer in 'C' drive simply use this as this as the target for your shortcut.
Shark
ps: to have it start on 'My Computer' use this as the target.
explorer.exe /e,/select
Shark
ps: to have it start on 'My Computer' use this as the target.
%SystemRoot%\explorer.exe /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
#7
Posted 09 March 2005 - 08:38 AM
Thanks, i already knew that target path had to be /n,/e,c: but just needed to get the shortcut to have that automaticly, kinda stupide that i didn't thought of just copying the shortcut from my CD, it's so easy... but i was thinking to difficult.
Thanks! cheers!
Thanks! cheers!
#8
Posted 28 July 2005 - 07:54 AM
Hey
Simple way to see it all
Just rightclick on Explorateur Windows and in the target path change
%SystemRoot%\explorer.exe to %SystemRoot%\explorer.scf
Very simple
Simple way to see it all
Just rightclick on Explorateur Windows and in the target path change
%SystemRoot%\explorer.exe to %SystemRoot%\explorer.scf
Very simple
#9
Posted 28 July 2005 - 12:17 PM
CyberWarrior, on Jul 28 2005, 07:54 AM, said:
Hey
Simple way to see it all
Just rightclick on Explorateur Windows and in the target path change
%SystemRoot%\explorer.exe to %SystemRoot%\explorer.scf
Very simple
<{POST_SNAPBACK}>
Simple way to see it all
Just rightclick on Explorateur Windows and in the target path change
%SystemRoot%\explorer.exe to %SystemRoot%\explorer.scf
Very simple
<{POST_SNAPBACK}>
MyDomain wants an automatised method ...
#10
Posted 29 July 2005 - 02:50 AM
- ← Question about local accounts vs domain accounts
- Unattended Windows 2000/XP/2003
- Alternative to hotfix integration? →
Share this topic:
Page 1 of 1



Help
Back to top









