1.

Solve : drive detection?

Answer» HI im making a batch fine on a memory stic and it needs to know when dirive the memory stic is can anyone help plz

also how can you make the "copy" command coppy the CONTENTS of folders inside the directory Code: [Select]set thisdrive=%~d0
set letter=%thisdrive:~0,1%
ECHO this batch is being run from drive %thisdrive%
echo the letter is %letter%
Quote from: steven32collins on May 16, 2009, 12:13:49 PM
also how can you make the "copy" command coppy the contents of folders inside the directory

Don't bother, use xcopy.

TYPE xcopy /? for full help, and type xcopy into Google for even more help.



Discussion

No Comment Found