Search found 19 matches

by bakemonogatari
27 Dec 2019 17:39
Forum: DOS Batch Forum
Topic: Bat file to create another bat file.
Replies: 18
Views: 1598

Re: Bat file to create another bat file.

i'm using a different command line and it works for me.
PsExec.exe \\!RemoteComputer! -h -accepteula -d %SystemDrive%\Batch\RemoteScript.bat
by bakemonogatari
27 Dec 2019 13:53
Forum: DOS Batch Forum
Topic: Bat file to create another bat file.
Replies: 18
Views: 1598

Re: Bat file to create another bat file.

are you sure you need -i ? try -d instead.
by bakemonogatari
27 Dec 2019 07:01
Forum: DOS Batch Forum
Topic: Bat file to create another bat file.
Replies: 18
Views: 1598

Re: Bat file to create another bat file.

on your computer, connect with User1, launch the file explorer, in the address bar type \\192.168.168.7 are you asked for a username and password ? does a 9xAddons share exist? are you asked for a username and password when accessing to that share ? check if the full path \\server\share\etc. matches...
by bakemonogatari
26 Dec 2019 18:19
Forum: DOS Batch Forum
Topic: Bat file to create another bat file.
Replies: 18
Views: 1598

Re: Bat file to create another bat file.

it seems you have a "problem" with the account you use to launch cmd... (or) also, you need to be sure you are first targeting \\Server\Share and not \\Server\Share\Subfolders. ideally, you need an account which already has rights on sharing (and which is a local administrator on PCs ...) Don't you ...
by bakemonogatari
26 Dec 2019 15:42
Forum: DOS Batch Forum
Topic: Bat file to create another bat file.
Replies: 18
Views: 1598

Re: Bat file to create another bat file.

launch cmd, type :

Code: Select all

pushd \\ServerName(or IP)\ShareName
echo %cd%
dir
pause
popd
what is displayed?
by bakemonogatari
26 Dec 2019 14:26
Forum: DOS Batch Forum
Topic: Bat file to create another bat file.
Replies: 18
Views: 1598

Re: Bat file to create another bat file.

you dont need to map a drive, check your UNC path \\ServerName(or IP)\ShareName and if the user that is used with PsExec.exe has the rights on the share.
by bakemonogatari
25 Dec 2019 04:31
Forum: DOS Batch Forum
Topic: Bat file to create another bat file.
Replies: 18
Views: 1598

Re: Bat file to create another bat file.

try : @Echo Off ( echo @echo off echo If not exist "C:\Dnload\9xAddons\Macrium" md "C:\Dnload\9xAddons\Macrium" echo cd "C:\Dnload\9xAddons\Macrium" echo copy from //%computername%/ReflectDLHF.exe echo copy from //%computername%/UpdateMacrium.exe echo Call UpdateMacrium.exe )>"%~dp0UpdateMacriumRun....
by bakemonogatari
23 Nov 2019 08:00
Forum: DOS Batch Forum
Topic: bat obfuscation with set ***=****
Replies: 5
Views: 2256

Re: bat obfuscation with set ***=****

thanks for explanations.
by bakemonogatari
06 Nov 2019 15:46
Forum: DOS Batch Forum
Topic: bat obfuscation with set ***=****
Replies: 5
Views: 2256

Re: bat obfuscation with set ***=****

in a bat file, do i need an escape character ?

ex:
SET **.=S
echo **. var %**.%
PAUSE

the %**.% only show *. not S
by bakemonogatari
31 Oct 2019 08:10
Forum: DOS Batch Forum
Topic: Batch script to login to multiple windows server
Replies: 8
Views: 3812

Re: Batch script to login to multiple windows server

an easy way would be to save credentials using Remote Desktop Connection (mstsc.exe)...
by bakemonogatari
26 Oct 2019 00:20
Forum: DOS Batch Forum
Topic: Find not working
Replies: 2
Views: 4624

Re: Find not working

your code works as expected, || acts like ELSE not AND
by bakemonogatari
22 Aug 2019 05:06
Forum: DOS Batch Forum
Topic: b2ev - Bat2Exe eVolved
Replies: 8
Views: 5678

Re: b2ev - Bat2Exe eVolved

is there a reason why after compiled it can't run something like "manage-bde -status c:" ? it says it is not recognized as an internal command.
by bakemonogatari
04 Aug 2019 11:02
Forum: DOS Batch Forum
Topic: Animated loading screen
Replies: 8
Views: 6628

Re: Animated loading screen

it was an infinite loop ... but I could do what I wanted with another loading code so it's ok
by bakemonogatari
02 Aug 2019 14:47
Forum: DOS Batch Forum
Topic: Animated loading screen
Replies: 8
Views: 6628

Re: Animated loading screen

In the main code I use a loop that counts its iterations in variable n. It's just a useless example for a task that takes some time and you have to replace it with your own code. However, the spinner is displayed as long as the loop runs. That means both the spinner and the loop run in parallel. St...
by bakemonogatari
02 Aug 2019 11:34
Forum: DOS Batch Forum
Topic: SUDO for CMD
Replies: 8
Views: 5596

Re: Run elevated commands / programs / shell

thank you, it works very well.