:: File:ToCygwinDir.cmd v.0.1.0 docs at the end
perl -e "use Win32::Clipboard ; $CLIP = Win32::Clipboard();$NEWCLIP=$CLIP->Get();$NEWCLIP=~s/^C://gi;$NEWCLIP=~s/\\/\//gi;$CLIP->Set($NEWCLIP);print $NEWCLIP "
::pause
:: Purpose:
:: change any \ chars from your windows clipboard into / chars , replace 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 U , click ok
:: COPY some path from your explorer such as C:\Temp, Alt + U , paste in cygwin as /cygwin/c/Temp
:: VersionHistory
:: 0.2.0 -- ysg -- Adjusted to ANY letter
:: 0.1.0 -- ysg -- Initial creation
::
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 !!!!