Manic-Man Posted August 15, 2004 Posted August 15, 2004 How do you make a link for a file, or move a file using msdos batch?
Bilou_Gateux Posted August 15, 2004 Posted August 15, 2004 Freeware shortcut.exe creates shortcuts from the command-line.download shortcut_1.00.zipShortcut version 1.00Creates, 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 ListCOPY, XCOPY, and MOVE Overwrite Functionality Changes in WindowsMOVEMoves files and renames files and directories.To move one or more files:MOVE [/Y | /-Y] [drive:][path]filename1[,...] destinationTo 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 isto prompt on overwrites unless MOVE command is being executed fromwithin a batch script.
Manic-Man Posted August 15, 2004 Author Posted August 15, 2004 Thanks. Erm, the link to shortcut.zip isn't working?
Chaos2 Posted August 16, 2004 Posted August 16, 2004 Looks like the site is down.Try this : http://download.scriptlogic.com/downloads/...tingtoolkit.zipIts a package with some commandline tools.This page descrip what it contain : http://www.jsiinc.com/SUBO/tip7100/rh7175.htmUse MakeScut.exe to create shortcut.SyntaxMakeScut /n "xxx" /t "xxx" [/i "xxx"] [/a "xxx"] [/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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now