Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a way to make Windows always present the paths as slashes instead of backslashes in order to save me a lot of hassle when copy-pasting paths to Java code.

To make it more clear, I want the default presentation of this:

default Explorer behavior

to be this:

Explorer behavior I want

How can I do this? Any help will be greatly appreciated as it is driving me nuts.

share|improve this question
1  
To achieve this you can use a simple Autohotkey script, that script will be activated either by a Key combination or automatically whenever focus goes to address field of Explorer. And it will access clipboard and alter all slashes. When you paste it to java code you will have required format –  Lamb Sep 24 '12 at 13:03
    
Thanks, Looks interesting. However I'm on a work computer and would prefer a solution that does not involve install new programs. –  Gal Sep 24 '12 at 13:15
    
@Gal: autohotkey.com/download click "ZIP archive" (portable version) –  Ryan_S Sep 25 '12 at 3:51
    
@Gal Autohotkey can generate an .exe version for it script, and that exe will work on a computer without any installing of it self and without Autohotkey installed. –  Lamb Oct 4 '12 at 14:32
add comment

1 Answer

This can be achieved by using some Script, which can access the clipboard, it will work this way :

  • Select and Copy path containing \.
  • Press some hotkey to activate the script.
  • That script access the content of clipboard and use simple logic to replace every occurance of \ to /.
  • Now clipboard content contains path with /.

Script may be a BATCH file or a AutoHotKey Script. But I don't think that a bat can access clipboard content. So Autohotkey will be the best option.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.