i want to a autorun a file through usb but when i plug in the usb and the autoplay option appears and click that file to get open.A dialog box appears showing message that G:/ is not valid win32 application..please help me out

/ is the wrong direction slash and what if you plug it in too a system that already has a drive G: as something else. try using this instead:

./myapp.exe

where myapp.exe is the program you want to run.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.