Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get filename by dragging file onto VBS script icon?

Status
Not open for further replies.

theniteowl

Programmer
May 24, 2005
1,975
US
Is it possible to launch a vbs script by dragging a file onto the vbs script icon and within the vbs script read in the name of the file it was launched with so that I can perform actions on that file?

For my purposes this would be much better than having to write code to browse the files in the folder and select them.


At my age I still learn something new every day, but I forget two others.
 
Yes. Look at the .Arguements collection of the WScript object.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top