Groups | Search | Server Info | Login | Register


Groups > alt.msdos.batch.nt > #19816

Moving batch files to a Windows-11 laptop.

From me at <my.address@is.invalid>
Newsgroups alt.msdos.batch.nt
Subject Moving batch files to a Windows-11 laptop.
Date 2026-04-03 14:05 +0000
Organization which
Message-ID <10qohf5$ki3$1@reader2.panix.com> (permalink)

Show all headers | View raw


Good morning, 

This does not work on my new Windows 11 laptop. Please help. It returns a blank location. Someone gave this to me, I don't understand how it works. 

8<-- 

# If one needs to use %drv% for backups as in
# xcopy /cd "c:\projects\archive\*.*" "%drv%\"
# Then, add the following to the beginning of the backup script
# and it will search for which drive letter the USB drive is on.
# It is searching for the file "usbdrive.txt"
# Place a copy of this file on the USB drive for it to find.

#@echo off
 for %%a in (d e f g h i j k l m n o p q r s t u v w x y z) do if exist %%a:\usbdrive.txt set drv=%%a:
 echo USB drive was found at drive %drv%
 pause

-->8 

Thanks, 


Back to alt.msdos.batch.nt | Previous | NextNext in thread | Find similar


Thread

Moving batch files to a Windows-11 laptop. me at <my.address@is.invalid> - 2026-04-03 14:05 +0000
  Re: Moving batch files to a Windows-11 laptop. "R.Wieser" <address@is.invalid> - 2026-04-03 16:25 +0200
    Re: Moving batch files to a Windows-11 laptop. me at <my.address@is.invalid> - 2026-04-03 20:16 +0000
      Re: Moving batch files to a Windows-11 laptop. "R.Wieser" <address@is.invalid> - 2026-04-04 08:54 +0200
      Re: Moving batch files to a Windows-11 laptop. Zaidy036 <Zaidy036@air.isp.spam> - 2026-04-04 09:35 -0400
  Re: Moving batch files to a Windows-11 laptop. me at <my.address@is.invalid> - 2026-04-03 20:19 +0000
  Re: Moving batch files to a Windows-11 laptop. JJ <jj4public@gmail.com> - 2026-04-04 05:10 +0700
  Re: Moving batch files to a Windows-11 laptop. me at <my.address@is.invalid> - 2026-04-04 13:22 +0000

csiph-web