MSFN Forum: How to add items to Send To context menu? - MSFN Forum

Jump to content



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

How to add items to Send To context menu? Rate Topic: -----

#1 User is offline   Mikep7779 

  • Member
  • PipPip
  • Group: Members
  • Posts: 221
  • Joined: 13-March 05

Posted 26 February 2008 - 09:30 PM

I know that the files have to be copied to

 
C:\Documents and Settings\Administrator\SendTo 


But where do i put the file to have it copied? Would my $OEM$\$1\Install\ Dir be sufficient?

I was thinking i could put it in there, then just copy it into the send to dir via a batch file.

Seems logical to me. Any ideas?


#2 User is offline   Arie 

  • One Man Army
  • PipPipPipPipPip
  • Group: Members
  • Posts: 835
  • Joined: 27-August 07

Posted 27 February 2008 - 02:29 AM

There are various ways how you can do this. You could use $OEM$-folders, create your own silent, self-extracting archive, use a batch script to copy over certain files or for example use a batch script which calls Shortcut.exe to create a shortcut there, et cetera. There are many possibilities, so do whatever you find the easiest and which works for you.

#3 User is offline   gunsmokingman 

  • MSFN Master
  • Group: Super Moderator
  • Posts: 2,019
  • Joined: 02-August 03
  • OS:none specified
  • Country: Country Flag

Posted 27 February 2008 - 09:01 AM

Perhaps something like this.
Save as SendTo.vbs

Quote

Const SENDTO = &H9&
 Dim Folder, Fso, Send_To, Shell
  Set Fso = CreateObject("Scripting.FileSystemObject")
  Set Shell = CreateObject("Shell.Application")
  Set Folder = Shell.Namespace(SENDTO)
  Set Send_To = Folder.Self
 Dim ArrFile 
'-> Place The Name Of The Files In Here
  ArrFile = Array("File_Name_Here_1", _
				  "File_Name_Here_2")
 Dim Loc, CopyF 
   Loc = Fso.GetParentFolderName(WScript.ScriptFullName)
   For Each CopyF In ArrFile 
	If Fso.FileExists(Loc & "\" & CopyF) Then
	 Fso.CopyFile(Loc & "\" & CopyF),(Send_To & "\" & CopyF), True
	End if
   Next

This post has been edited by gunsmokingman: 29 February 2008 - 09:24 AM


#4 User is offline   Oleg_II 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 679
  • Joined: 06-August 04

Posted 29 February 2008 - 09:01 AM

This is my example of creating two shortcuts "Expand" and "Make" for two CMD files in SendTo menu:
 
[version]
signature="$Windows NT$"
ClassGUID={00000000-0000-0000-0000-000000000000}
LayoutFile=layout.inf

[DefaultInstall]
CopyFiles = Files
UpdateInis = Appz.links

[DestinationDirs]
Files = 16422,tools\cmd

[Files]
cabarc.exe
expand.cmd
makecab.cmd
modifyPE.exe

[Appz.links]
setup.ini, progman.groups,, "group1=""%16393%"""
setup.ini, group1,, """CAB Expand"",""""""%16422%\tools\cmd\expand.cmd"""""",,,,""%16422%\tools\cmd"",""expand.cmd"""
setup.ini, group1,, """CAB Make"",""""""%16422%\tools\cmd\makecab.cmd"""""",,,,""%16422%\tools\cmd"",""makecab.cmd""" 


#5 User is offline   pierce14u2 

  • Group: Members
  • Posts: 3
  • Joined: 01-January 05

Posted 01 June 2008 - 06:26 AM

Since allot of users here use the $oem$ file hierary to customize there instulations I figured I would share my method for adding items to the SendTo folder.
And there is alot of information on this site regarding how to utilize them, since this is a very small part of there vast funtionality
This is the directory structure I use on my RIS server (can also be used with CD, flashdrive, or network install sources)

 
\$OEM$
\$OEM$\$1                             <--- contents copyed to %systemdrive% 
\$OEM$\$1\Drivers 
\$OEM$\$1\Runonce

\$OEM$\$$                             <--- contents copyed to %windir%
\$OEM$\$$\INF 
\$OEM$\$$\SyStem32

\$OEM$\$Docs You have two options as to where you may want to add your files depending on your desired end result 
\$OEM$\$Docs\AllUsers             <--- Use for Allusers using this computer
\$OEM$\$Docs\AllUsers\Sendto
\$OEM$\$Docs\Default User       <--- use for adding the settings to a user profile (that has not yet logged on to this computer)
\$OEM$\$Docs\Default User\Sendto

\$OEM$\$Progs                        <--- Copied to the Program files Directory

\Textmode                              <--- RAID driver files go here  


It is also required to modify , change or add the lines as follows to your winnt.sif, ristndrd.sif, unnattended.sif or whatever file your using

 
[Unattended] 
OemPreinstall = YES 


Acually if your not joining a domain you may add your own username (instead of AllUsers or Default User) under the $docs Directory so you can prepopulate your sendto items into your profile witch may be what your desireing specifically, I was not really sure since you indicated "C:\Documents and Settings\Administrator\SendTo" as your desired location.

I hope this helps

Erik

This post has been edited by pierce14u2: 01 June 2008 - 06:47 AM


#6 User is offline   `Felix` 

  • MSFN Contributor
  • PipPipPip
  • Group: Members
  • Posts: 481
  • Joined: 28-July 04

Posted 02 June 2008 - 03:53 AM

View PostOleg_II, on Feb 29 2008, 11:01 PM, said:

This is my example of creating two shortcuts "Expand" and "Make" for two CMD files in SendTo menu:
 
[version]
signature="$Windows NT{:content:}quot;
ClassGUID={00000000-0000-0000-0000-000000000000}
LayoutFile=layout.inf

[DefaultInstall]
CopyFiles = Files
UpdateInis = Appz.links

[DestinationDirs]
Files = 16422,tools\cmd

[Files]
cabarc.exe
expand.cmd
makecab.cmd
modifyPE.exe

[Appz.links]
setup.ini, progman.groups,, "group1=""%16393%"""
setup.ini, group1,, """CAB Expand"",""""""%16422%\tools\cmd\expand.cmd"""""",,,,""%16422%\tools\cmd"",""expand.cmd"""
setup.ini, group1,, """CAB Make"",""""""%16422%\tools\cmd\makecab.cmd"""""",,,,""%16422%\tools\cmd"",""makecab.cmd""" 


How do you have your make and expand cmd's set up m8? I would like to do something similar here... :D

#7 User is offline   Oleg_II 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 679
  • Joined: 06-August 04

Posted 02 June 2008 - 06:56 AM

I use jdoe's CAB Tool for it (in fact usual install will install these shortcuts to Send To menu itself, but I use a bit modified old version and make shortcuts myself). Very good and very handy tool though :thumbup Find it here.

This post has been edited by Oleg_II: 02 June 2008 - 07:01 AM


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