1.

Solve : create shortcuts using a batch file?

Answer»

My batch file moves a folder to "C:\example", but after it moves it, i want to make shorcuts to some files inside "C:\example". How would i do that?Quote

i want to make shorcuts to some files inside "C:\example". How would i do that?

What kind of files are these? Executables? File types associated with an application?

Normally I would suggest a VBScript, but the NT Toolkit has a shortcut utility:

Quote
shortcut: [-? -h -f -c -r -s] [[-t] target [[-n] name]] [-d working directory]
[-a Arguments] [-i Iconfile] [-x Icon index] [-u {all|[natdix]}]
[-l logfile]

-? -h This HELP
-f Force overwrite of an existing short cut
-c Change existing shortcut
-s Make shortcut non TRACKING (Stupid)
-r Resolve broken shortcut
-t target Specifies the target of the shortcut
-n name Specifies the file name of the shortcut file
-d directory Specifies the directory name to START the application in
-a arguments Specifies the arguments passed when the shortcut is used
-i iconfile Specifiles the file the icon is in
-x index Specifies the index into the icon file
-u [spec] DUMPS the contents of a shortcut. 'all' is the same as 'natdix'
but the letters of 'natdix' can be specified to display specific
fields in the shortcut (repeats allowed, and order FOLLOWED)
-l logfile record error messages in specified file



Discussion

No Comment Found