MSFN Forum: Links - Msdos batch files - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

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

Links - Msdos batch files Rate Topic: -----

#1 User is offline   Manic-Man 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 14-August 04

Posted 15 August 2004 - 01:12 AM

How do you make a link for a file, or move a file using msdos batch?


#2 User is offline   Bilou_Gateux 

  • Powered by Windows Embedded
  • PipPipPipPipPip
  • Group: Members
  • Posts: 766
  • Joined: 03-January 04

Posted 15 August 2004 - 04:09 AM

Freeware shortcut.exe creates shortcuts from the command-line.
download shortcut_1.00.zip

Shortcut version 1.00

Creates, modifies or queries Windows shell links (shortcuts)


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 or .URL shortcut file.
 /A:action      : Defines the action to take (Create, Edit or 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=Maximized,7=Minimized).
 /I:icon,index  : Defines the icon and optional index (file.exe or file.exe,2).
 /H:hotkey      : Defines the hotkey.
 /D:description : Defines the description (or comment) for the shortcut.


 If Query is specified, all arguments except /F are ignored.

 An argument of /? or -? displays this syntax and returns 1.
 A successful completion will return 0.


 Copyright 2000  Marty List



COPY, XCOPY, and MOVE Overwrite Functionality Changes in Windows

MOVE

Moves files and renames files and directories.

To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination

To rename a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2

  [drive:][path]filename1 Specifies the location and name of the file
                          or files you want to move.
  destination             Specifies the new location of the file. Destination
                          can consist of a drive letter and colon, a
                          directory name, or a combination. If you are moving
                          only one file, you can also include a filename if
                          you want to rename the file when you move it.
  [drive:][path]dirname1  Specifies the directory you want to rename.
  dirname2                Specifies the new name of the directory.

  /Y                      Suppresses prompting to confirm you want to
                          overwrite an existing destination file.
  /-Y                     Causes prompting to confirm you want to overwrite
                          an existing destination file.

The switch /Y may be present in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.  Default is
to prompt on overwrites unless MOVE command is being executed from
within a batch script.


#3 User is offline   Manic-Man 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 14-August 04

Posted 15 August 2004 - 04:55 AM

Thanks. Erm, the link to shortcut.zip isn't working?

#4 User is offline   Chaos2 

  • Group: Members
  • Posts: 4
  • Joined: 09-July 04

Posted 16 August 2004 - 03:06 PM

Looks like the site is down.

Try this : http://download.scriptlogic.com/downloads/...tingtoolkit.zip
Its a package with some commandline tools.

This page descrip what it contain : http://www.jsiinc.co...7100/rh7175.htm

Use MakeScut.exe to create shortcut.

Syntax

MakeScut /n "xxx" /t "xxx" [/i "xxx"] [/a "xxx"] [/s] [/r] [/o] [/k] [/c "xxx"]


/n Name of the shortcut to be created, including the full path.

/t Target application that the shortcut will be used to launch, including full path.

/i Filespec (and optionally an index) of the icon for the shortcut, including full path.

/a Arguments used by the target application.

/s Start in (a.k.a. Working directory), including full path.

/r Run window. Default is a normal window. Options include min or max.

/o Overwrite. If the /o switch is not specified, the default behavior is do not overwrite.

/k Shortcut Key used to launch the application.

/c Comment (displayed on mouse hover).


Hope it helps.

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