Hello,
I've been tasked with the job to write a batchfile that can be put into the windows scheduled tasks to do the following...
1. Launch the VPN decktop icon
2. Issue the map network drive command (net use)
3. Copy a file across the network
4. Disconnect the VPN
2 + 3 is not a problem, I can work that one out, however i've searched and searched google and cannot find a way to launch a shortcut, I found how to create them but not launch them
I've tried the following also, with no joy
rundll32.exe url.dll,FileProtocolHandler c:\path\mylink.lnk
plus lookled up all the SHELL32.dll comands but can't seem to find what I need
How do I auto-launch a desktop shortcut / .lnk file
Also how would I disconnect the VPN connection, is there a command line program to kill a process?, would that be the way to do it.
and finally how do I tell a batch job to SLEEP x seconds, I know there is PAUSE, but that would require human response to carry on.
I've tried the START command but that doesn't launch the shortcut.
Any help with a way to acheive this would be very much appreciated.
Regards,
1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
I've been tasked with the job to write a batchfile that can be put into the windows scheduled tasks to do the following...
1. Launch the VPN decktop icon
2. Issue the map network drive command (net use)
3. Copy a file across the network
4. Disconnect the VPN
2 + 3 is not a problem, I can work that one out, however i've searched and searched google and cannot find a way to launch a shortcut, I found how to create them but not launch them
I've tried the following also, with no joy
rundll32.exe url.dll,FileProtocolHandler c:\path\mylink.lnk
plus lookled up all the SHELL32.dll comands but can't seem to find what I need
How do I auto-launch a desktop shortcut / .lnk file
Also how would I disconnect the VPN connection, is there a command line program to kill a process?, would that be the way to do it.
and finally how do I tell a batch job to SLEEP x seconds, I know there is PAUSE, but that would require human response to carry on.
I've tried the START command but that doesn't launch the shortcut.
Any help with a way to acheive this would be very much appreciated.
Regards,
1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.