Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Batch File Question...
Old 06-14-2007, 10:10 AM Batch File Question...
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Hi,

In Question, if I have:

Code:
@for %%d in (a,b) do copy file.exe %%d:\
and
Code:
@for %%d in (c,d) do delete file.exe %%d:\
It does 'work' but, if %%d is used twice for two totally different commands, Is that ok? Just curious to about this.
__________________
Made2Own

Please login or register to view this content. Registration is FREE

Last edited by Brian07002; 06-14-2007 at 10:35 AM..
Brian07002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-14-2007, 12:21 PM Re: Batch File Question...
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Yeah, I don't see why not?

http://msdn.microsoft.com/vstudio/express/vb/
http://msdn.microsoft.com/vstudio/ex...p/default.aspx
http://msdn.microsoft.com/vstudio/ex...J/default.aspx

Yesterday you said your work doesn't need to be done in a batch file. Any of these environments will allow you to easily write a standard Windows .exe executable program. You'll have more complete access to the file system, robust error handling ( in case a file is locked temporarily, or the target disc doesn't have enough room ), the ability to log your progress, and all sorts of other things. You can also use a simple dialog box to prompt the use for different drives, or a file pattern (eg file*.exe) or anything else that might be important.

What you keep asking about, at the absolute simplest with none of these extras we're talking about right now might take 15 lines of code and 5 minutes to write. I can give you help with that, and so can the many other kind folks in here.

The three links I put into this message take you to free compilers and IDEs with help files, so basically everything you need. These are all Microsoft's latest and arguably greatest, and the computer(s) your program runs on will need the Microsoft .NET Framework installed, but you'd have to look around to find a Windows machine that doesn't.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 06-14-2007, 12:31 PM Re: Batch File Question...
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Without going into detail, I am writting a utility application which requires parameters of the such.

Thanks for your help
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 06-14-2007, 01:13 PM Re: Batch File Question...
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
I would really hate to depend on batch files as part of a larger application, myself. I'm not trying to steer you in the wrong direction, and you know your requirements better than anyone else, but that's my advice.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Batch File Question...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23428 seconds with 12 queries