drag and drop over batch files doesn't work

G

Guest

hello,

I'm using Windows XP Pro with SP2. I made some batch files that use drag and
drop, but recently these files stopped working.

Now if i write a batch file like:
echo file: -%1-

and then drag a file over the batch the result is:
echo file: --
file: --

previously the result would be something like:
echo file: -"c:\a directory\readme.txt"-
file: -"c:\a directory\readme.txt"-

I've tried to drag the "readme.txt" over word.exe or over the word link I
have on the desktop and word opens correctly the "readme.txt".

Probably I've installed some programs that have demaged my registry.

Is there a way to fix this without have to use a restore point?

thanks in advice
 
R

Ramesh, MS-MVP

See if this command helps, from Start/Run:

cmd /c ftype batfile="%1" %*
cmd /c assoc .bat=batfile
 
G

Guest

Thankyou Ramesh! It works great! Thanks for the quickness

--
- matteo d addio -


"Ramesh, MS-MVP" ha scritto:
See if this command helps, from Start/Run:

cmd /c ftype batfile="%1" %*
cmd /c assoc .bat=batfile
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Batch file parameters 7
Cannot Drag-n-Drop files... (!) 14
batch help??? 3
Batch file for cleaning up 1
Recursion Problem in Batch 5
Batch FIle help 2
Batch file developement 6
Send Access Data to a Batch file 1

Top