Search found 6 matches
- 17 Aug 2016 06:51
- Forum: DOS Batch Forum
- Topic: If exists, rename archive.
- Replies: 4
- Views: 4504
Re: If exists, rename archive.
To what you create the variable if you do not take them set "filename=C:\Users\PP_lemev\Desktop\Newfolder\01_%YEAR%.7z" ? instead of cd C:\Users\PP_lemev\Desktop\Newfolder take this set "Source=C:\Users\PP_lemev\Desktop\Newfolder" set "file=01_%YEAR%" if not exist &quo...
- 17 Aug 2016 06:42
- Forum: DOS Batch Forum
- Topic: If exists, rename archive.
- Replies: 4
- Views: 4504
Re: If exists, rename archive.
Why is New_Folder listed twice in this path? if exist "C:\Users\PP_lemev\Desktop\Newfolder\Newfolder\01_%YEAR%.7z" It's because I have Newfolder inside Newfolder. This is just test script, but with main functionality. Real paths are used in my "Real script". Can this path have s...
- 16 Aug 2016 23:53
- Forum: DOS Batch Forum
- Topic: If exists, rename archive.
- Replies: 4
- Views: 4504
If exists, rename archive.
Good day! So, I recently made post in SO, becouse I had problems with my Archivating system. One of the kind users answered me, but for some reason code still didn't work. Since, now I am not complete noob, I changed code a bit, but it still did not do, what it was suposed to, so I came here for hel...
- 11 Aug 2016 02:55
- Forum: DOS Batch Forum
- Topic: How to find folder, if path is unknown.
- Replies: 1
- Views: 2215
How to find folder, if path is unknown.
So, here is piece of my code for script that I am making: :January cls cd \\sharename\folder if not exist "\\sharename\folder\01_2016" mkdir "\\sharename\folder\01_2016" ECHO Folder is Created! ECHO Moving Files... MOVE "\\sharename\folder\??_01" "\\sharename\folde...
- 24 Jul 2016 09:19
- Forum: DOS Batch Forum
- Topic: How to run Installer through Batch Multiselect menu
- Replies: 3
- Views: 3265
Re: How to run Installer through Batch Multiselect menu
In that part of the code you can change the menu items: for %%a in ("Install thing 1" "Do thing 2" "Execute thing 3" "Run thing 4" "Test thing 5") do ( In label :logic you have to place some IF statements. %~1 contains the number of the selected ite...
- 24 Jul 2016 09:02
- Forum: DOS Batch Forum
- Topic: How to run Installer through Batch Multiselect menu
- Replies: 3
- Views: 3265
How to run Installer through Batch Multiselect menu
Hello! Guy from another forum shared his Multiple Select menu in batch file. Unfortunately, this is my first time creating Batch scripts so I wanted to ask for your help. Here is Menu: @echo off setlocal EnableDelayedExpansion set "getKeyMacro=powershell -noprofile "^ while (-not (37..40+1...