Jump to content

Batch File to Copy files to %USERPROFILE%


Recommended Posts

Hey,

How can i copy files from the windows cd to the %USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch ?

I want to have some icons there after installation.

The icons are in the $OEM$ map, same place as cmdlines.txt

Thanks in advance! :thumbup

Raoul

Link to comment
Share on other sites


I use this at T-12 to edit quicklaunch:

if not exist "%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch\cmd.lnk" shortcut.exe /F:"%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch\cmd.lnk" /A:C /T:"%SystemRoot%\system32\cmd.exe"

shortcut.exe

Link to comment
Share on other sites

If you dont want to use 3rd party apps for something as simple as

adding something to Quick Launch folder, here is a VBS script that

adds Cmd Promt to the Quick Launch folder.

Save As AddCmd_QLaunch.vbs

Option Explicit
Dim Act, ObjSC, QuickLaunch, StrCmd
Set Act = CreateObject("WScript.Shell")
QuickLaunch = Act.ExpandEnvironmentStrings("%AppData%\Microsoft\Internet Explorer\Quick Launch")
StrCmd = Act.ExpandEnvironmentStrings("%SystemRoot%\system32\cmd.exe")
Set ObjSC = Act.CreateShortcut(QuickLaunch & "\Cmd.lnk")
ObjSC.Description = Act.ExpandEnvironmentStrings("%UserName%") & " Open Command Promt"
ObjSC.TargetPath = StrCmd
ObjSC.Save

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