What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Little help with batch programming

Little help with batch programming
Author: Message:
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
RE: Little help with batch programming
code:
FOR /f "delims=" %%G IN ('dir /b') DO (
echo %%~nG
echo MY NAME IS SONICSAM AND I ROCK
echo %%~nG >> poop.txt
)
Notice the ~n, it removes the file extenson

There should be no need to set it to something else with this code, and I am not even sure setting it inside ()'s will even work...but the %%~n will allow you to do whatever you wanted with the original code.

This post was edited on 02-03-2010 at 09:39 PM by prashker.
02-03-2010 09:32 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Little help with batch programming - by Chancer on 02-03-2010 at 06:46 PM
RE: Little help with batch programming - by prashker on 02-03-2010 at 09:32 PM
RE: Little help with batch programming - by Lou on 02-03-2010 at 09:33 PM
RE: Little help with batch programming - by prashker on 02-03-2010 at 09:36 PM
RE: Little help with batch programming - by Chancer on 02-04-2010 at 12:05 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On