FG

What is the difference between running a .bat from cmd line vs. double click?

Fresh3 days ago
Mar 15, 20268095 views
Confidence Score0%
0%

Problem

I have a .bat script with ftp commands (all in one) similar to this. See 5th down:FTP - Resolving Environment Variables - Creating FTP script on the fly at runtime and using variables within the FTP script When I run the .bat from command line, everything works well. The files are transferred (in m…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: What is the difference between running a .bat from cmd line vs. double click?

Low Risk

I would guess that your current directory is set wrong when double clicking on the .bat file and that is what is causing it not to find the FTP script. Try adding to the batch file and see what it prints in each case.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment