Search found 17 matches
- 22 Mar 2018 06:46
- Forum: DOS Batch Forum
- Topic: Xlsx to csv Running on Jenkins
- Replies: 3
- Views: 5018
Xlsx to csv Running on Jenkins
Hi, I've a script for xlsx to csv and also that is working fine for me in cmd prompt, while running the same script from Jenkins I'm getting a error like C:\Users\SVCT-WI-Jenkins\Desktop\Post_Patching\Mapping_Server\Excel2csv.vbs(9, 1) Microsoft Excel: Microsoft Excel cannot access the file 'C:\User...
- 27 Feb 2018 05:10
- Forum: DOS Batch Forum
- Topic: Read a file and store the values in a varibale
- Replies: 1
- Views: 2991
Read a file and store the values in a varibale
My CSV file looks like Environment,non-cluster Server1,10.66.216.141 GDrvie_Build,\\ukgswtowb10\g$\CAM8\CAM8_6.20.8.4 Change_in_MysysProperty,ORF2_v6.20.8.9 In the above csv First I've to check the first column If its Enviroment then set the respective second column value to some variable called env...
- 09 Feb 2018 07:06
- Forum: DOS Batch Forum
- Topic: Want to handle the error while deleting some files and folders
- Replies: 0
- Views: 14019
Want to handle the error while deleting some files and folders
I want to handle the error if anything went wrong while deleting the files and folders. My target files and folders are on remote server not on the same server.. I tried with pushd, popd and rd commands but unfortunately it doesn't sends the errorlevel Can anyone help me on this.. MY Requirement wit...
- 08 Feb 2018 07:31
- Forum: DOS Batch Forum
- Topic: Want to read a text file and do copy of the Files
- Replies: 5
- Views: 6545
Re: Want to read a text file and do copy of the Files
Hi If I use double quotes also I'm facing the same issue.. The command I Used xcopy "\\vfs-or2-wi\bancs\BaNCSFS\BancsProduct\Extranet\Bancs.ear\APP-INF\lib\PS.jar" C:\Users\SVCT-WI-Jenkins\Desktop\backup_location Below is for your reference C:\Users\SVCT-WI-Jenkins\Desktop\Scripts_for_ORF2>xcopy "\\...
- 07 Feb 2018 05:38
- Forum: DOS Batch Forum
- Topic: Want to read a text file and do copy of the Files
- Replies: 5
- Views: 6545
Re: Want to read a text file and do copy of the Files
Thank you @elzooilogico. I've one more doubt on doing xcopy could you please clarify. I've files on some UNC path drives, say for example For the same batch file If I'm using the following text file as input backupfilenameandlocation.txt \\vfs-or2-wi\bancs\BaNCSFS\BancsProduct\Extranet\Bancs.ear\APP...
- 06 Feb 2018 04:56
- Forum: DOS Batch Forum
- Topic: Want to read a text file and do copy of the Files
- Replies: 5
- Views: 6545
Want to read a text file and do copy of the Files
I want to read a text file and its looks like my text file backupfilenameandlocation.txt C:\Users\SVCT-WI-Jenkins\Desktop\Scripts_for_ORF2\5_cur_sys_filebackup.bat C:\Users\SVCT-WI-Jenkins\Desktop\Scripts_for_ORF2\5_cur_sys_backup.bat C:\Users\SVCT-WI-Jenkins\Desktop\Scripts_for_ORF2\24_Service_up.b...
- 31 Jan 2018 09:08
- Forum: DOS Batch Forum
- Topic: Deleting some cache folder on a remote server
- Replies: 8
- Views: 7669
Re: Deleting some cache folder on a remote server
Hi, While I running the below ORF_delete.bat REM *********************Delete the Cache and Log Folders************************************************************************ set "servername=10.66.216.141" set "psexec=E:\Jenkins_Software\PSTools\PsExec.exe" set "Adminlogpathtofolder=\\vfs-or2-wi\ban...
- 31 Jan 2018 04:06
- Forum: DOS Batch Forum
- Topic: Deleting some cache folder on a remote server
- Replies: 8
- Views: 7669
Re: Deleting some cache folder on a remote server
Sorry @aGerman I guess I wrongly explained my requirement in the above one I don't want to delete the following folders logs,security and stage except that I want to delete all the other folders. But the solution you provide is to delete the logs, security and stage. Sorry for the trouble. Could you...
- 30 Jan 2018 05:55
- Forum: DOS Batch Forum
- Topic: Deleting some cache folder on a remote server
- Replies: 8
- Views: 7669
Re: Deleting some cache folder on a remote server
Thank you very much for your timely help @aGerman @Squashman Could you please help me to solve this too I tried it but it doen't work REM *********************Delete the Cache and Log Folders************************************************************************ set "servername=10.47.36.90" set "ps...
- 29 Jan 2018 09:42
- Forum: DOS Batch Forum
- Topic: Deleting some cache folder on a remote server
- Replies: 8
- Views: 7669
Deleting some cache folder on a remote server
Below is my script for deleting the cache folder on remote server REM *********************Delete the Cache and Log Folders************************************************************************ set "servername=10.47.36.90" set "psexec=E:\Jenkins_Software\PSTools\PsExec.exe" set "Adminlogpathtofold...
- 17 Jan 2018 05:11
- Forum: DOS Batch Forum
- Topic: Delete all files and folders and sub_folders expect some two folders
- Replies: 1
- Views: 2592
Delete all files and folders and sub_folders expect some two folders
Say for Example my folder Structure looks like the below one full_delete =E:\Oracle\Middleware\user_projects\domains\Skandia\servers\AdminService\ expection_folder =E:\Oracle\Middleware\user_projects\domains\Skandia\servers\ Extranet-server \ I've to delete all the filea subfolders and folders that ...
- 17 Jan 2018 04:44
- Forum: DOS Batch Forum
- Topic: Read a file by line by line and store some specific values in another text file through bat file
- Replies: 2
- Views: 3764
Re: Read a file by line by line and store some specific values in another text file through bat file
Thanks for your reply @Squashman. It working perfectly awesome.
- 12 Jan 2018 04:18
- Forum: DOS Batch Forum
- Topic: Read a file by line by line and store some specific values in another text file through bat file
- Replies: 2
- Views: 3764
Read a file by line by line and store some specific values in another text file through bat file
Say for Example I'm having my sample.txt file as Environment=non-clusters Server1=xx.xx.xx.xxx Server2=xx.xx.xx.xxx GDrvie_Build=\\xx.xx.xx.xxx\Users\vissas\Desktop\WIServerSetup\CAM8\CAM8_6.20.8.2 Build_Artifact_File=Hotfix_CAM8_6.20.8.2.7z Newer_Version=UAT2_v6.18.13.1 Property_File_Name=MCSysProp...
- 10 Jan 2018 05:00
- Forum: DOS Batch Forum
- Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
- Replies: 550
- Views: 2164613
Re: JREPL.BAT v7.9 - regex text processor now with Unicode and XRegExp support
Hi Dave I'm running my command through a bat file and how could I confirm whether my change is happened or not. Is any errorlevel are you following in JREPL. Is the following scenario handled in your bat file I'm running the below command to change a value in the property file E:\Jenkins_Software\PS...
- 09 Jan 2018 04:55
- Forum: DOS Batch Forum
- Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
- Replies: 550
- Views: 2164613
Re: JREPL.BAT v7.9 - regex text processor now with Unicode and XRegExp support
@dbenham I've created the my bat file as follows to edit my property is that ok @echo off if not exist "PropertyFile.txt" goto :EOF if not exist "%~dp0jrepl.bat" goto :EOF call "%~dp0jrepl.bat" "^(Environment=.+)$" "Environment=UAT1-v6.19.13.0" /I /F "PropertyFile.txt" /O - rem JREPL.BAT v7.9 leaves...