Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Rather strange batch file problem
  
User name:
Password:
Reply:
 

UserPost
HyperLamer
Posts: 4281/8210
Some of these I would like to be able to run in pure DOS (not possible with all of them, but yeah). As for the batch file problem, apparently I didn't fix it after all. XP's command line seems to be doing this really strange and stupid thing with my parameters. Observe:

program.exe *.cow - Arguments are '*.cow' assuming there are no .cow files nearby.

program.exe *.exe - Arguments are 'program1.exe program2.exe program3.exe' etc, listing whatever files match the given pattern. I need to see the pattern itself, not a list of files. (I got findfirst() to work though, and might I say that thing REALLY needs a way to filter by attributes. )

Also, I'm wondering how possible it is to do various things with console windows, such as:

-Open one console window and have several different programs output to it (specially designed to do so).
-Have a program spawn console windows and output to them; prefferably being able to create a few different ones and show different things in them simultaneously.

It'd really help with some of the bigger projects that don't have real GUIs yet.
loadingNOW
Posts: 56/61
in case you're talking about comandline...
main(int argc, TCHAR* argv[], TCHAR* envp[])

i guess you know the first 2 ... and yes envp[] ist the environment pointer. Also when using comandline you can use windows api, too (i tend to use CreateProcess Read/WriteProcessMemory quite a lot).

And i actually prefer command line simply because i don't have to waste my time bothering with boring gui code.
Dish
Posts: 355/596
Command Line is not DOS

I really REALLY hope you're not actually coding DOS programs. ;P

But anyway I don't have any real info to give you, since I avoid command line like the plague.
HyperLamer
Posts: 4270/8210
Nevermind, DOS is just weird. Instead, maybe someone can tell me why findfirst() isn't working no matter what search pattern I give it? It always just returns -1 and blanks out the ffblk struct.

Also wouldn't mind knowing how to read/write environment variables in DOS programs...
Acmlm's Board - I2 Archive - Programming - Rather strange batch file problem


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.004 seconds.