Hi Dave,
Yes you are correct. Once i Include in the quotes it works perfectly.
Thanks a lot for your help.
Just want to say one thing about this forum.
A TOUGH PROBLEM CAN BE SOLVED EAISLY BY THE EXPERTS HERE.
I LOVE THIS FORUM AND HOPE THE SAME IN FEATURE
Search found 32 matches
- 20 Sep 2011 10:23
- Forum: DOS Batch Forum
- Topic: Executing Jar files through bat file
- Replies: 2
- Views: 3660
- 20 Sep 2011 06:03
- Forum: DOS Batch Forum
- Topic: Executing Jar files through bat file
- Replies: 2
- Views: 3660
Executing Jar files through bat file
Hi I have a below problem I have installed latest java 1.7 application from sun and i want to execute the java application through bat file Below is my bat file @echo off Title Java Account Manager 1.0 Startup cd .\Initial C:\Program Files\Java\jre7\bin\java.exe -jar CertifyAMInitial.jar" When ...
- 09 Sep 2011 02:49
- Forum: DOS Batch Forum
- Topic: Inseting underscore in between the test for a variable
- Replies: 5
- Views: 6620
Re: Inseting underscore in between the test for a variable
Hey i got the answer for this .. I have to use >>c:\somelogfile.txt. But if i run the bat file one more time the same value is added to the txt file. Can i prevent that happeing. @echo off set "str=The Pebbles & Bamm-Bamm Show" set str="%str: =_%" echo,%str% >>c:\somelogfile....
- 09 Sep 2011 00:14
- Forum: DOS Batch Forum
- Topic: Inseting underscore in between the test for a variable
- Replies: 5
- Views: 6620
Re: Inseting underscore in between the test for a variable
Hi Batcher,
Thanks a lot. One more help from you
Is it possible to put the output 'STR' in to a txt file??
Ie what i want is after generating the Output with Underscore symbol . i want the output result to be stored in a txt file.
Please help me in this ...
Thanks,
kumar
Thanks a lot. One more help from you
Is it possible to put the output 'STR' in to a txt file??
Ie what i want is after generating the Output with Underscore symbol . i want the output result to be stored in a txt file.
Please help me in this ...
Thanks,
kumar
- 08 Sep 2011 03:07
- Forum: DOS Batch Forum
- Topic: Inseting underscore in between the test for a variable
- Replies: 5
- Views: 6620
Inseting underscore in between the test for a variable
Hi All, I have the below requirement ie To insert Underscores instead of spaces for a set of words present in a variable. For eg: if the variable contains " The Pebbles & Bamm-Bamm Show" , then I need an output "The_Pebbles_&_Bamm-Bamm_Show". The number of words vary each...
- 16 Aug 2011 06:06
- Forum: DOS Batch Forum
- Topic: How Do we Calculate the Weeknumber for a given date in a yea
- Replies: 2
- Views: 6115
How Do we Calculate the Weeknumber for a given date in a yea
HI All,
I want to have a bat file to Calculate the Week number for a Given Date in an Year
For example Today date is 16 the the week is 33
Iam new to Bat code . STEP by STEP would be more helpful for me
Thanks,
San
I want to have a bat file to Calculate the Week number for a Given Date in an Year
For example Today date is 16 the the week is 33
Iam new to Bat code . STEP by STEP would be more helpful for me
Thanks,
San
- 09 Aug 2011 05:10
- Forum: DOS Batch Forum
- Topic: Restart machine on every friday arount 12:00PM
- Replies: 4
- Views: 6057
Re: Restart machine on every friday arount 12:00PM
HI FOlks,
Adding one more query. Can the bat file run automatically on every friday around 13:00pm to shut down the machine.
Note: I know we can call the bat file from a scheduler in the control panel a part from that ..
Awaiting for your reply.
Thanks,
San
Adding one more query. Can the bat file run automatically on every friday around 13:00pm to shut down the machine.
Note: I know we can call the bat file from a scheduler in the control panel a part from that ..
Awaiting for your reply.
Thanks,
San
- 09 Aug 2011 00:07
- Forum: DOS Batch Forum
- Topic: Restart machine on every friday arount 12:00PM
- Replies: 4
- Views: 6057
Re: Restart machine on every friday arount 12:00PM
Hi The first code works perfectly .
I have not tested Edward code . but i think it will work.
Thanks a lot for your help guys ..
Thanks,
San
I have not tested Edward code . but i think it will work.
Thanks a lot for your help guys ..
Thanks,
San
- 08 Aug 2011 01:33
- Forum: DOS Batch Forum
- Topic: Restart machine on every friday arount 12:00PM
- Replies: 4
- Views: 6057
Restart machine on every friday arount 12:00PM
Hi Every one ,
Can any one please post a .bat file which restarts machine on every friday around 9:00PM
Thanks,
Santosh kumar
Can any one please post a .bat file which restarts machine on every friday around 9:00PM
Thanks,
Santosh kumar
- 18 Jul 2011 03:27
- Forum: DOS Batch Forum
- Topic: display time in 12 hr
- Replies: 25
- Views: 33652
Re: display time in 12 hr
HEY YOU ARE A CHAMP GERMAN THANKS ,
Thanks for your
Thanks,
San
Thanks for your
Thanks,
San
- 15 Jul 2011 09:28
- Forum: DOS Batch Forum
- Topic: Rename the PDF file
- Replies: 9
- Views: 9973
Re: Rename the PDF file
Special thanks to every one ... I made it working ... Please find the below code to display in 12 hr format @echo off @For /F "tokens=1,2,3,4 delims=/ " %%A in ('Date /t') do @( Set DayW=%%A Set Day=%%B Set Month=%%C Set Year=%%D Set All=%%A-%%B-%%C-%%D ) for /f "tokens=1 delims=: &qu...
- 15 Jul 2011 09:17
- Forum: DOS Batch Forum
- Topic: display time in 12 hr
- Replies: 25
- Views: 33652
Re: display time in 12 hr
i hva fixed this .. thanks a lot for your help guys .. below is the code @echo off @For /F "tokens=1,2,3,4 delims=/ " %%A in ('Date /t') do @( Set DayW=%%A Set Day=%%B Set Month=%%C Set Year=%%D Set All=%%A-%%B-%%C-%%D ) for /f "tokens=1 delims=: " %%h in ('time /T') do set hour=...
- 15 Jul 2011 08:48
- Forum: DOS Batch Forum
- Topic: Rename the PDF file
- Replies: 9
- Views: 9973
Re: Rename the PDF file
Hi All, I have modified the below batch file to display in 12hr format but it gives me the below error can any one help me please.. Error is as follows: Fri-07-15-2011_08:11-PM A duplicate file name exists, or the file cannot be found. "Duplicate file name exists" Can you please help?? @ec...
- 15 Jul 2011 08:45
- Forum: DOS Batch Forum
- Topic: display time in 12 hr
- Replies: 25
- Views: 33652
Re: display time in 12 hr
Hey on further investigating i got the date displaying correctly in 12 hr format. But when i include it in my code it says the below error: Error is as follows: Fri-07-15-2011_08:11-PM A duplicate file name exists, or the file cannot be found. "Duplicate file name exists" Can you please he...
- 14 Jul 2011 23:36
- Forum: DOS Batch Forum
- Topic: display time in 12 hr
- Replies: 25
- Views: 33652
Re: display time in 12 hr
Hi aGerman
I tried using the the code given by you.
Albeit my goal was not achieved, could you please let me know where exactly i need to paste that code.
Mind not am new to bat files dev.
Thanks
San
I tried using the the code given by you.
Albeit my goal was not achieved, could you please let me know where exactly i need to paste that code.
Mind not am new to bat files dev.
Thanks
San