Page 1 of 1
I'd like to start Filezilla on a network PC
Posted: 06 Oct 2023 00:45
by Docfxit
When I run this bat file it says my syntax isn't correct for PSexec.
Code: Select all
@Echo On
CHCP 65001
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
set USERNAME=docfxit
SET /P PASSWORD="Enter the user password: "
ECHO.
net use * /d /y
net use Z: \\192.168.168.7\C
C:\Batch\PSEXEC.EXE "\\192.168.168.7\C\Programs\FileZilla FTP Client\filezilla.exe" -u docfxitLT10\%USERNAME% -p %PASSWORD% -i
cmd /k
Re: I'd like to start Filezilla on a network PC
Posted: 06 Oct 2023 08:46
by Lucky4Me
Check this
https://learn.microsoft.com/en-us/sysin ... ads/psexec
and then try to run the command as follows
Code: Select all
@Echo On
CHCP 65001
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
set USERNAME=docfxit
SET /P PASSWORD="Enter the user password: "
ECHO.
::net use * /d /y
::net use Z: \\192.168.168.7\C
c:\batch\psexec.exe -i \\192.168.168.7 "C:\Programs\FileZilla FTP Client\filezilla.exe" -u docfxitLT10\%USERNAME% -p %PASSWORD%
cmd /k
check if this works
Re: I'd like to start Filezilla on a network PC
Posted: 06 Oct 2023 11:54
by Docfxit
Code: Select all
set USERNAME=docfxit
SET /P PASSWORD="Enter the user password: "
c:\batch\psexec.exe -i \\192.168.168.7 "C:\Programs\FileZilla FTP Client\filezilla.exe" -u docfxitLT10\%USERNAME% -p %PASSWORD%
With the above script I was getting an error saying the user name was not correct.
Code: Select all
set USERNAME=Docfxit
SET /P PASSWORD="Enter the user password: "
cmdkey.exe /add:192.168.168.7 /user:%USERNAME% /pass:%PASSWORD%
c:\batch\psexec.exe \\192.168.168.7 "C:\Programs\FileZilla FTP Client\filezilla.exe" -i
With the above script I didn't get an error but Filezilla.exe won't work with a bat file. It requires Filezilla Pro CLI.
Is there a better way to transfer files from a remote PC to a local PC?
Re: I'd like to start Filezilla on a network PC
Posted: 06 Oct 2023 15:27
by Lucky4Me
Use robocopy, if you want to transfer files from a remote pc to a local pc, or create a share, remote pc is in your own lan.
enter robocopy /? in a cmd window, gives you the options to use
Re: I'd like to start Filezilla on a network PC
Posted: 08 Oct 2023 10:00
by miskox
Maybe you could use CURL or FTP?
Saso
Re: I'd like to start Filezilla on a network PC
Posted: 08 Oct 2023 13:02
by Docfxit
I ended up getting robocopy to work without running an FTP server.
Thanks,