Hi.
I am wondering if you could make a shortcut to a file in a macro script.
First my script have to check if the file exists, that is no problem.
But if the file exist, then I need the script to create a shourt to the file in another dir. Is this possible?
Creating shortcut to a file
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Hi Anders
Quick and dirty approach: No time for scripts for a while, will just be able to submit quick responses.
1. Check to see if files exists, if NO, then end.
2. If File exists use Windows Find/Search to locate file.
3. Tab/MouseMove to position in Find window, right click/MainMenu-File to do Create shortcut (will have to be on desktop, cannot add to Find results).
4. Once shortcut is made, can move to desired directory.
This should be enough to complete the script that you need. I see this is in Beginner's Forum so you may want to get some others to help with this. You can submit portions if you do it yourself, and I am sure there will be plenty of help available. Just eat the elephant one bite at a time, and you will get it done.
Quick and dirty approach: No time for scripts for a while, will just be able to submit quick responses.
1. Check to see if files exists, if NO, then end.
2. If File exists use Windows Find/Search to locate file.
3. Tab/MouseMove to position in Find window, right click/MainMenu-File to do Create shortcut (will have to be on desktop, cannot add to Find results).
4. Once shortcut is made, can move to desired directory.
This should be enough to complete the script that you need. I see this is in Beginner's Forum so you may want to get some others to help with this. You can submit portions if you do it yourself, and I am sure there will be plenty of help available. Just eat the elephant one bite at a time, and you will get it done.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
Or use the shortcut.exe tool that comes with the windows tool kit. Or use VBscript and windows scripting host activex
MJT Net Support
[email protected]
[email protected]
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact: