run .bat file on remote machinebest/simple way to run .bat file on remote machineHow do I check whether a file exists without exceptions?Is there a way to run Python on Android?How do I copy a file in Python?Proper way to declare custom exceptions in modern Python?How do I list all files of a directory?How to read a file line-by-line into a list?How do you append to a file in Python?Delete a file or folderExecute Python function on remote machinebest/simple way to run .bat file on remote machine
"What is the maximum that Player 1 can win?"
Improve appearance of the table in Latex
Boss wants someone else to lead a project based on the idea I presented to him
Is there any proof that high saturation and contrast makes a picture more appealing in social media?
What is the meaning of "понаехать"?
Has a life raft ever been successfully deployed on a modern commercial flight?
How can I ping multiple IP addresses at the same time?
Traversing Latin America & Caribbean: A Cryptic Journey
How can I prevent a user from copying files on another hard drive?
King or Queen-Which piece is which?
Why does independence imply zero correlation?
What are the pros and cons for the two possible "gear directions" when parking the car on a hill?
How does DC work with natural 20?
How does join() produce different results depending on the arguments?
Dmesg full of I/O errors, smart ok, four disks affected
Is the specular reflection on a polished gold sphere white or gold in colour?
Mathematically modelling RC circuit with a linear input
How do internally carried IR missiles acquire a lock?
Too early in the morning to have SODA?
Dates on degrees don’t make sense – will people care?
Definition of 'vrit'
How to work with PETG? Settings, caveats, etc
I found a password with hashcat, but it doesn't work
macOS: How to take a picture from camera after 1 minute
run .bat file on remote machine
best/simple way to run .bat file on remote machineHow do I check whether a file exists without exceptions?Is there a way to run Python on Android?How do I copy a file in Python?Proper way to declare custom exceptions in modern Python?How do I list all files of a directory?How to read a file line-by-line into a list?How do you append to a file in Python?Delete a file or folderExecute Python function on remote machinebest/simple way to run .bat file on remote machine
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I try to run .bat
file on remote machine.
From my machine i mapped the folder where my .bat
(on the remote machine) is exist and from my machine i just try to run the file:
os.system(r'Y:file.bat')
But it seems that nothing hapenning.
Any suggestions ?
BTW both machines are Windows
python
|
show 1 more comment
I try to run .bat
file on remote machine.
From my machine i mapped the folder where my .bat
(on the remote machine) is exist and from my machine i just try to run the file:
os.system(r'Y:file.bat')
But it seems that nothing hapenning.
Any suggestions ?
BTW both machines are Windows
python
Similar to stackoverflow.com/q/55326462/929999
– Torxed
Mar 25 at 7:02
yes i saw it and choose this approach but i have different issue that this not working
– Dana Yeger
Mar 25 at 7:03
Are you attempting to run the commands in the bat file on the remote machine? Because that won't work this way. What you are actually doing is running the commands in thebat
file on the remote computer on the local computer you're executing this Python script on.
– ajxs
Mar 25 at 7:08
I try to run the os.system.. command on my machine, the bat file is on remote machine and this bat file need to run also on the remote machine, so what i need to do ?
– Dana Yeger
Mar 25 at 7:10
You need to log into the other machine (remotely, if you wish) and then run the script there.
– zvone
Mar 25 at 7:36
|
show 1 more comment
I try to run .bat
file on remote machine.
From my machine i mapped the folder where my .bat
(on the remote machine) is exist and from my machine i just try to run the file:
os.system(r'Y:file.bat')
But it seems that nothing hapenning.
Any suggestions ?
BTW both machines are Windows
python
I try to run .bat
file on remote machine.
From my machine i mapped the folder where my .bat
(on the remote machine) is exist and from my machine i just try to run the file:
os.system(r'Y:file.bat')
But it seems that nothing hapenning.
Any suggestions ?
BTW both machines are Windows
python
python
edited Mar 25 at 7:01
Torxed
14.2k105893
14.2k105893
asked Mar 25 at 6:59
Dana YegerDana Yeger
1812420
1812420
Similar to stackoverflow.com/q/55326462/929999
– Torxed
Mar 25 at 7:02
yes i saw it and choose this approach but i have different issue that this not working
– Dana Yeger
Mar 25 at 7:03
Are you attempting to run the commands in the bat file on the remote machine? Because that won't work this way. What you are actually doing is running the commands in thebat
file on the remote computer on the local computer you're executing this Python script on.
– ajxs
Mar 25 at 7:08
I try to run the os.system.. command on my machine, the bat file is on remote machine and this bat file need to run also on the remote machine, so what i need to do ?
– Dana Yeger
Mar 25 at 7:10
You need to log into the other machine (remotely, if you wish) and then run the script there.
– zvone
Mar 25 at 7:36
|
show 1 more comment
Similar to stackoverflow.com/q/55326462/929999
– Torxed
Mar 25 at 7:02
yes i saw it and choose this approach but i have different issue that this not working
– Dana Yeger
Mar 25 at 7:03
Are you attempting to run the commands in the bat file on the remote machine? Because that won't work this way. What you are actually doing is running the commands in thebat
file on the remote computer on the local computer you're executing this Python script on.
– ajxs
Mar 25 at 7:08
I try to run the os.system.. command on my machine, the bat file is on remote machine and this bat file need to run also on the remote machine, so what i need to do ?
– Dana Yeger
Mar 25 at 7:10
You need to log into the other machine (remotely, if you wish) and then run the script there.
– zvone
Mar 25 at 7:36
Similar to stackoverflow.com/q/55326462/929999
– Torxed
Mar 25 at 7:02
Similar to stackoverflow.com/q/55326462/929999
– Torxed
Mar 25 at 7:02
yes i saw it and choose this approach but i have different issue that this not working
– Dana Yeger
Mar 25 at 7:03
yes i saw it and choose this approach but i have different issue that this not working
– Dana Yeger
Mar 25 at 7:03
Are you attempting to run the commands in the bat file on the remote machine? Because that won't work this way. What you are actually doing is running the commands in the
bat
file on the remote computer on the local computer you're executing this Python script on.– ajxs
Mar 25 at 7:08
Are you attempting to run the commands in the bat file on the remote machine? Because that won't work this way. What you are actually doing is running the commands in the
bat
file on the remote computer on the local computer you're executing this Python script on.– ajxs
Mar 25 at 7:08
I try to run the os.system.. command on my machine, the bat file is on remote machine and this bat file need to run also on the remote machine, so what i need to do ?
– Dana Yeger
Mar 25 at 7:10
I try to run the os.system.. command on my machine, the bat file is on remote machine and this bat file need to run also on the remote machine, so what i need to do ?
– Dana Yeger
Mar 25 at 7:10
You need to log into the other machine (remotely, if you wish) and then run the script there.
– zvone
Mar 25 at 7:36
You need to log into the other machine (remotely, if you wish) and then run the script there.
– zvone
Mar 25 at 7:36
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55332635%2frun-bat-file-on-remote-machine%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55332635%2frun-bat-file-on-remote-machine%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Similar to stackoverflow.com/q/55326462/929999
– Torxed
Mar 25 at 7:02
yes i saw it and choose this approach but i have different issue that this not working
– Dana Yeger
Mar 25 at 7:03
Are you attempting to run the commands in the bat file on the remote machine? Because that won't work this way. What you are actually doing is running the commands in the
bat
file on the remote computer on the local computer you're executing this Python script on.– ajxs
Mar 25 at 7:08
I try to run the os.system.. command on my machine, the bat file is on remote machine and this bat file need to run also on the remote machine, so what i need to do ?
– Dana Yeger
Mar 25 at 7:10
You need to log into the other machine (remotely, if you wish) and then run the script there.
– zvone
Mar 25 at 7:36