How to to do the following with a batch file:
1. Create a folder.
2. Copy a file to the created folder.
3. Create a shortcut on the desktop pointing to the
file that was copied to the created folder.
1. Download required files:
To create the shortcut:
Shortcut 1.11 24 KB (Freeware)
Info:
http://www.optimumx.com/download/#Shortcut
Download:
http://www.optimumx.com/download/Shortcut.zip
To launch the batch file without a command window:
Hidden Start 2.1 23 KB (Freeware)
Info:
http://www.ntwind.com/software/utilities/hstart.html
Download:
http://www.ntwind.com/download/hstart.zip
2. Copy both files to C:\WINDOWS\
3. Copy below and paste into Notepad:
----------copy inside only----------
@ECHO OFF
:: Create a folder:
MD "C:\Path To\New folder\"
:: Copy a file to the created folder:
XCOPY "C:\Path To\file.ext" "C:\Path To\New folder\"
:: Create a shortcut on the desktop:
C:\WINDOWS\Shortcut.exe /F:"%UserProfile%\Desktop\file.lnk" /A:C /T:"C:\Path To\file.ext"
CLS
EXIT
----------copy inside only----------
4. Modify the paths accordingly, then paste into Notepad.
5. Save-as AnyName.bat (any name + .bat)
6. Right-click and select "New->Shortcut"
7. Paste the following into the "Type the location of the item" area:
C:\WINDOWS\HSTART.EXE /NOCONSOLE "C:\Path To\AnyName.bat"
8. Give the shortcut a name and run it to test.
ju.c