Drag and drop with batch files

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
alvalongo
Posts: 2
Joined: 20 Sep 2006, 16:50

Drag and drop with batch files

Post by alvalongo »

Using SS I think there is a bug when using Batch files:

1. I have a Batch named "copyform.bat" in the path "U:\development"
I use this batch to copy a binary file from the curren path to other drive and path and change the name in the copy:
@echo Current Path="%cd%"

if '%1'=='' goto NoParameter
copy "%1" "O:\Smartflex\xred.fmx"
goto End

@echo Parameter: the filename to copy
goto End

:End
pause

2. When I double-ckick this batch from SS, the current path is "U:\Development"

3. When I select a file, ie: "xred_v101.fmx" in the path "U:\Development" and drag and drop over the batch, then the current path is "C:\WINNT\system32" but the file to copy is in "U:\Development" and the batch is in "U:\Development".


Bye

Alvalongo
from Bogota, Colombia (South America)
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Post by Jan Rysavy »

Hello, this is not a bug, try the same action in Windows Explorer.
User avatar
SvA
Posts: 486
Joined: 29 Mar 2006, 02:41
Location: DE

Post by SvA »

Windows Explorer uses my Homepath as Working dir wheras Salamander uses %SYSTEMROOT%\System32. (Win XP SP2)

The former is writeable by any user, the latter only by an administrator, but even he should not use that directory accidently as a scratch space.

So you should consider changing this.
Post Reply