How to encrypt files in Windows using only the built-in (batch script, explorer, etc.)?

I am trying to write a script that I can give the user to automatically zip certain files and then upload them to the ftp site. Does anyone know where I can find information on writing a batch file to autostart files using only what is available to a user running Windows?

+5
source share
6 answers

The best alternative to a batch file would be to use the JAR and use the Java java.util.zip package for zip files. Or how about distributing a bat file with a JAR. People can execute the BAT file, and it, in turn, can run the JAR.

-1

zip , (COM) Windows Scripting Host. Shell.Application. FolderItem , CopyHere .., zip , . . zip unzip.

+1

(AFAIK) Windows , . , ftp ( ftp, ).

zip ftp.

0

( Microsoft) , zip-, Windows, dll, . :

- zipfldr.dll, regsvr32.exe , , .

- technologyquestions.com

, ( script): 7zip, winzip, pkzip ..

You can also look in VBScript or WSH as an alternative to batch files.

0
source

Windows has its own zip command. You can put the code below in the backup.bat file and run.

@echo off
:: variables
set drive=E:\backup
set backupcmd=xcopy /s /c /d /e /h /i /r /y

echo ### Backing up My Documents...
%backupcmd% "e:\Repositories" "%drive%\SVNrepository\Repositories"



e:
cd "%drive%\SVNrepository"

zip -r -S -T -$ -m Repositories.zip Repositories


set filename="..\Repository_bak_%date:~0,4%%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%.zip"
move .\*.zip %filename%
cd E:\backup\

echo Backup Complete!
rem @pause
-1
source

By csgnrg@yahoo.it

If you want to convert one file to one ZIP file, you can use gzip.exe

Let oProcess.Cwd = oOutput.PATH
    oProcess.SetUsePosition
    oProcess.SetUseSize 0, 0
    oProcess.ExeCmd "gzip.exe gzip -f -q -c -9 " & oSource.Source & " > " & oOutput.Source, True
    If oProcess.Error Then
       Let ErrorMsg = oProcess.ErrorMsg
       Exit Sub
    End If
-1
source

All Articles