:: File:ToWindowsDir.cmd v.1.1.0 docs at the end
perl -e "use Win32::Clipboard ; $CLIP = Win32::Clipboard();$NEWCLIP=$CLIP->Get();$NEWCLIP=~s/\//\\/gi;$NEWCLIP=~s/\\cygdrive\\([a-zA-Z]{1})/$1:/gi;$CLIP->Set($NEWCLIP);"
:: Purpose:
:: change any / chars from your windows clipboard into \ chars
:: replace any drive letter c: with /cygdrive/c
:: from your clipboard
::
:: Requirements
:: windows , perl , Win32::Clipboard module
::
:: Usage:
:: place this cmd file in your path
:: double-click bat file or create a short cut of it , place on desktop
:: right click the shortcut , Properties , Click on ShortCut key , press W , click ok
:: COPY some path from your explorer such as C:\Temp, Alt + U
:: paste in cygwin as /cygwin/c/Temp
::
:: VersionHistory
:: 1.1.0 --- ysg --- ToWindowsDir
:: 0.2.0 -- ysg -- Adjusted to ANY letter
:: 0.1.0 -- ysg -- Initial creation
::
:: EOF file : ToWindowsDir.cmd
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!