BATCH: get folder path when calling the script from context menu Share on Facebook Post on reddit Tweet on Twitter Share on LinkedIn Home › Forums › Scripting › General Scripting › BATCH: get folder path when calling the script from context menu This topic has 1 reply, 2 voices, and was last updated 9 years, 6 months ago by Rems. Viewing 1 post (of 1 total) Author Posts jon80Member Jul 14, 2011 at 6:05 am #155475 I would like to create an option within the context menu of Windows, that runs a batch script which runs the following file just within the directory that I am browsing from, say windows explorer. @echo off cd %current directory% del *.class > delete.log It would be nice if I could log delete.log to another directory, for example, C:Program Filescustom sript log files. Any idea how to script it? :mrgreen: Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic.