Page 1 of 1

Drag and drop with batch files

Posted: 07 Dec 2006, 23:27
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)

Posted: 11 Dec 2006, 14:00
by Jan Rysavy
Hello, this is not a bug, try the same action in Windows Explorer.

Posted: 11 Dec 2006, 23:59
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.