Jump to content

micks80

Member
  • Posts

    7
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

About micks80

micks80's Achievements

0

Reputation

  1. Thanks Yzowl, I looked into that thread and would probably change to some other option but unfortunately I cannot make that change this week. I am encountering a different issue deleting the shortcut which has nothing to do with the script. I just use "rmdir" to delete the "mycompany" directory I created under %userprofile% but it's not working. Can someone tell me when I click the "Start->Programs->MyCompany->MyShortcut" link, where does the command gets executed from???? The link is pointing to "C:/Mycompany/uninstall.cmd" file. So when the command runs, does it runs from "%userprofile%/mycompany" directory or "C:/Mycompany" directory??? Your help would be greatly appreciated. Thanks
  2. Nevermind guys, Figured it out. Just had to issue a make directory command to make a directory first under "%userprofile%/start menu/programs/mycompany" and then issuing the shortcut command specified above and it works like a charm. Thanks
  3. Hi Friends, I am using this shortcut script ( http://www.optimumx.com/download/ ) to make shortcuts on desktop and "start menu->programs". But I am not getting how to create a group under which I would like to place all these shortcuts. The readme file states this: The syntax of this command is: Shortcut.exe /F:filename /A:C|E|Q [/T:target] [/P:parameters] [/W:workingdir] [/R:runstyle] [/I:icon,index] [/H:hotkey] [/D:description] /F:filename : Specifies the .LNK shortcut file. /A:action : Defines the action to take (C=Create, E=Edit or Q=Query). /T:target : Defines the target path and file name the shortcut points to. /P:parameters : Defines the command-line parameters to pass to the target. /W:working dir : Defines the working directory the target starts with. /R:run style : Defines the window state (1=Normal, 3=Max, 7=Min). /I:icon,index : Defines the icon and optional index (file.exe or file.exe,0). /H:hotkey : Defines the hotkey, a numeric value of the keyboard shortcut. /D:description : Defines the description (or comment) for the shortcut. Examples: /f:"%ALLUSERSPROFILE%\Start Menu\Programs\My App.lnk" /a:q /f:"%USERPROFILE%\Desktop\Notepad.lnk" /a:c /t:^%WINDIR^%\Notepad.exe /h:846 /f:"%USERPROFILE%\Desktop\Notepad.lnk" /a:e /p:C:\Setup.log /r:3 I tried the first command and it created a shortcut for me like: Start->Programs->Shortcut Whereas I would like to have it like this: Start->Programs->MyCompany->Shortcut1 Start->Programs->MyCompany->Shortcut2 Start->Programs->MyCompany->Shortcut3 I would appreciate if someone can give some pointers. Thanks
  4. Thanks Guys, The copying to TEMP directory idea worked like a charm. I just wrote another batch script like you said and copied it to the TEMP directory before executing the "Rmdir" command... Cheers...
  5. Hi Friends, I have an unattended installer and to un-install it I have a dos script file e.g C:\MySoftware\uninstall\script.cmd Now, in script.cmd, I try to delete the "MySoftware" folder by issuing this: rmdir /S /Q "C:\MySoftware" But the problem is since the script is inside the folder itself, it deletes everything but cannot delete the two folder and leaves behind these 2 blank folders (MySoftware and uninstall) which the user have to delete manually. Can someone suggest a way how to handle this in a better way so that the whole "MySoftware" folder gets deleted. Thanks a lot.
  6. Hi Friends, I am new here and got an issue that i need help with... I need to copy some files from the CD to the user system and then after copying I called the "setup.cmd" file to start the installer. When I copy the files, I do this: xcopy *.* "%temp%\myfolder rem c: cd myfolder call setup.com Now, the problem is, this only works if i remove that comment line i.e "rem c:" but since the users can have their TEMP directories on D: or E: drive, I do not want to do that..so I would like to know what's the best way to handle this scenario... Second thing I was thinking is to create a SFX using WinRAR but I am doubtful whether it will work on client systems that do not have WInRAR installled??? Any help would be appreciated. Thanks
×
×
  • Create New...