Issues in batch script variables
I am using windows server 2008 standard edition. I have my batch script which copies file from one folder to another and renames file to some unique number using variable. But this batch script is not working because i cant use variable in script on windows server 2008. on windows server 2003 i have used rktools.exe provided by microsoft but for server 2008 i am not getting anything. Please help with issue. my script uses this for loop rem SET /A cnt=0 FOR %%i in (%appspath%*.*) DO ( set /a cnt+=1 ECHO count: %cnt% rem ECHO S File: %%i Set att1 = %%i set att2 = %%~ni rem set att3 = %%~xi rem ECHO att1: %att1% copy %%i %tmppath%%%~ni%cnt%%%~xi ) ECHO Total Count: %cnt% here my variables are not working if there is no solution please guide me some other way to achive this.
October 29th, 2009 6:06pm

Hi, As the issue seems to be related to development/coding, we are mainly focus on the general question here, we are not the best support resource for development. For quick and better support on scripting/coding, it is recommend you to initial a new thread to get further support in the MSDN forum. The community members and support professionals there are more familiar with script and can give you a support in an efficient way. For your convenience, I have list the link to MSDN forum. MSDN forum http://social.msdn.microsoft.com/Forums/en-US/categories/ Thanks for the understandings. This posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
November 6th, 2009 11:28am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics