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.

What is the correct code to open a program inside another folder using autorun? say the computer assigns the drive as D:, and thus the program would be at D:\folder\program.exe then would the command be

open=.\folder\program.exe

?

share|improve this question

migrated from stackoverflow.com Dec 28 '10 at 2:41

This question came from our site for professional and enthusiast programmers.

    
Try asking this question on the superuser site. This isn't a programming question. –  David Dec 28 '10 at 0:48

1 Answer 1

That doesn't work because . or nothing maps to the current folder.

I would think it would just be:

open=\folder\program.exe

\ maps to the root, watch out because this could map through the system drive though.

To be sure, you might want to use:

open=D:\folder\program.exe
share|improve this answer

Your Answer

 
discard

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