I'd like to start Filezilla on a network PC

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Docfxit
Posts: 130
Joined: 12 Nov 2015 12:42

I'd like to start Filezilla on a network PC

#1 Post by Docfxit » 06 Oct 2023 00:45

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

Lucky4Me
Posts: 19
Joined: 21 Oct 2020 06:33

Re: I'd like to start Filezilla on a network PC

#2 Post by Lucky4Me » 06 Oct 2023 08:46

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

Docfxit
Posts: 130
Joined: 12 Nov 2015 12:42

Re: I'd like to start Filezilla on a network PC

#3 Post by Docfxit » 06 Oct 2023 11:54

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?

Lucky4Me
Posts: 19
Joined: 21 Oct 2020 06:33

Re: I'd like to start Filezilla on a network PC

#4 Post by Lucky4Me » 06 Oct 2023 15:27

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

miskox
Posts: 554
Joined: 28 Jun 2010 03:46

Re: I'd like to start Filezilla on a network PC

#5 Post by miskox » 08 Oct 2023 10:00

Maybe you could use CURL or FTP?

Saso

Docfxit
Posts: 130
Joined: 12 Nov 2015 12:42

Re: I'd like to start Filezilla on a network PC

#6 Post by Docfxit » 08 Oct 2023 13:02

I ended up getting robocopy to work without running an FTP server.

Thanks,

Post Reply