Search found 6 matches

by Maxime
15 Aug 2020, 21:39
Forum: Help
Topic: Sync online zip file with local folder
Replies: 12
Views: 3729

Re: Sync online zip file with local folder

Thank you for your patience jdaniele, my script finally works!

Here it is, if somebody is interested:

@ECHO OFF

RMDIR /q /s "%TEMP%\611tcZGdH5"
MKDIR "%TEMP%\611tcZGdH5"
PUSHD "%TEMP%\611tcZGdH5"
PowerShell -Command "Invoke-WebRequest -OutFile Optinfo.zip -Uri 'http://arandomnas.myqnapcloud.com ...
by Maxime
15 Aug 2020, 16:48
Forum: Help
Topic: Sync online zip file with local folder
Replies: 12
Views: 3729

Re: Sync online zip file with local folder

Hi jdaniele,
I've done 3 things somewhat related to my script since the last time:

- I added FFS to my User path (7z was already there).
- I rebooted my computer
- I added the /d parameter to the cd command.

I don't know why, but I now can use the commands "freefilesync", "7z" and "powershell ...
by Maxime
14 Aug 2020, 15:29
Forum: Help
Topic: Sync online zip file with local folder
Replies: 12
Views: 3729

Re: Sync online zip file with local folder

- Sorry about what I said about how I added FreeFileSync to the PATH, I made an unfortunate typo: I did put the parent directory in the PATH (typo corrected). I did exactly the steps you just sent me, and cmd.exe still outputs the too familiar error:
'freefilesync' is not recognized as an internal ...
by Maxime
14 Aug 2020, 10:27
Forum: Help
Topic: Sync online zip file with local folder
Replies: 12
Views: 3729

Re: Sync online zip file with local folder

Thank you very much!

I've followed your tips, modifying some things, and I've come up with this batch file:


@echo off
for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"
set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%"
set "HH=%dt:~8,2%" & set ...
by Maxime
13 Aug 2020, 07:19
Forum: Help
Topic: Sync online zip file with local folder
Replies: 12
Views: 3729

Re: Sync online zip file with local folder

This ZIP-file to ZIP-file syncing is not interesting here, since if some files were updated in the remote ZIP-file and some deleted, the only possibility I have is to overwrite one file or the other, which would lose updates or files deleted remotely.

Since I can't do what I want using FFS only ...
by Maxime
12 Aug 2020, 13:30
Forum: Help
Topic: Sync online zip file with local folder
Replies: 12
Views: 3729

Sync online zip file with local folder

Hi!
I would like to sync a zip file that comes from the internet, and that is dynamically generated each time I access an address (address resembling http://arandomnas.myqnapcloud.com:8080/share.cgi?ssid=Tw3g9O1&ep=Qm2Yx8Ys8F3cMW792ko==), to a local folder on my computer.

Is there a way to do what ...