Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Length of Command$ function
#11
It seems that there is. I can still only pass about four or five files to the BAT file (via drag-drop). Does anybody know a way to increase this amount?

Also, I've noticed something strange. If I make a file called "TEMP.BAT" that looks like this:

Code:
@echo off
cd

And I put it in "C:\Proggy" folder, then open My Computer, C:, \Proggy, and double-click it, it displays

C:\Proggy

just like it should. However, if I drag-and-drop a file onto it, it displays:

C:\

for some reason? Anybody know why or how I can change it to start in its current directory?

I know I can change it to be this:

Code:
@echo off
c:
cd\proggy
cd

but I'd like to make it default to its current directory so that I can move it around without having to edit the path every time I put it in a new folder.

*peace*

Meg.
Reply
#12
This is my current batch file, just so ya know:

Code:
@echo off
C:
cd\proggy
copy nul filename.lst > nul
:loop
if not exist "%1" goto done
echo %~dp1%~sn1%~x1>> filename.lst
shift
goto loop
:done
call proggy.exe
del /q filename.lst

*peace*

Meg.
Reply
#13
Edited:

Why do not use this batch?
Code:
for %%i in (%1\*.xls) do fullpath\proggy %%i

proggy is your QB program and should take a file name in the command line.

It does allow to drag and drop a full directory into the bat icon

I have tested it with echo in the place of proggy in W2000 and it works
Antoni
Reply
#14
If i'm not wrong in win32 the command line are passed using the standard psp and environment variable, i cant remember, but should be CMDLINE or something like that.

The environment can very large (4k to say something) so you have enought space.

I hope this help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)