Gå til innhold

endre .vxe filer til .exe


Anbefalte innlegg

Kom over denne på nettet:

@echo off
echo Please wait while renaming all VXE files to EXE...
:: Renames all .VXE files to .EXE on the C: drive
:: Code derived from 
:: http://www.ericphelps.com/batch/lists/filelist.htm

rem ******************* MAGIC HAPPENS HERE *******************
:: Create the list of vxe files
dir /s /b c:\*.vxe > filelist.txt
rem ******************* MAGIC HAPPENS HERE *******************
:: Create the PROCESS.BAT
echo ren "%%filename%%" "*.exe"> process.bat
rem ******************* MAGIC HAPPENS HERE *******************

:: Create the FRAGMENT.TXT
:: See http://www.ericphelps.com/batch/lines/frag-dbg.htm
echo e 100 "set filename="> script
echo rcx>> script
echo d>> script
echo n fragment.txt>> script
echo w>> script
echo q>>script
debug < script > nul
del script

:START
copy fragment.txt + filelist.txt temp.txt > nul
type temp.txt | find "set filename=" > temp.bat
echo call process.bat >> temp.bat
call temp.bat
type temp.txt | find /v "set filename=" > filelist.txt
copy filelist.txt nul | find "0" > nul
if errorlevel 1 goto START

:: Delete temporary files
del temp.bat
del filelist.txt
del temp.txt
del fragment.txt
del process.bat
cls

Er ikke dette en utrolig tungvint måte og gjøre det på når du kan:

@echo off
cd C:\
ren "*.vxe" "*.exe"
exit

har jeg oversett noe her eller?

Endret av Depressure
Lenke til kommentar
Videoannonse
Annonse

 
DIR [drive:][path][filename] [/A[[:]attributes]] [/b] [/C] [/D] [/L] [/N]
 [/O[[:]sortorder]] [/P] [/Q] [/s] [/T[[:]timefield]] [/W] [/X] [/4]

 [drive:][path][filename]
             Specifies drive, directory, and/or files to list.

 /A          Displays files with specified attributes.
 attributes   D  Directories                R  Read-only files
              H  Hidden files               A  Files ready for archiving
              S  System files               -  Prefix meaning not
[b]  /B          Uses bare format (no heading information or summary).[/b]  
 /C          Display the thousand separator in file sizes.  This is the
             default.  Use /-C to disable display of separator.
 /D          Same as wide but files are list sorted by column.
 /L          Uses lowercase.
 /N          New long list format where filenames are on the far right.
 /O          List by files in sorted order.
 sortorder    N  By name (alphabetic)       S  By size (smallest first)
              E  By extension (alphabetic)  D  By date/time (oldest first)
              G  Group directories first    -  Prefix to reverse order
 /P          Pauses after each screenful of information.
 /Q          Display the owner of the file.
[b] /S          Displays files in specified directory and all subdirectories[/b].
 /T          Controls which time field displayed or used for sorting
 timefield   C  Creation
             A  Last Access
             W  Last Written
 /W          Uses wide list format.
 /X          This displays the short names generated for non-8dot3 file
             names.  The format is that of /N with the short name inserted
             before the long name. If no short name is present, blanks are
             displayed in its place.
 /4          Displays four-digit years

 

Ser ut som det er S'en ja

Endret av Ekko
Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...