LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   launching a window's batch file from linux (https://www.linuxquestions.org/questions/general-10/launching-a-windows-batch-file-from-linux-599162/)

dv502 11-12-2007 05:45 PM

launching a window's batch file from linux
 
Hello linux fans,

I was watching some videos on youtube.com on playing pranks on windows machines, like fake error messages, shutdowns, fake deletion of files, etc...

Anyway, these pranks are simple batch files, The trick is to get my family to click on the icon without them being suspicious.

Is there a way, that I can launch the batch file from my linux machine?

My family likes to play jokes on each other :D

pljvaldez 11-12-2007 05:50 PM

You could try setting up an ssh server on the windows box (might require setting up cygwin), then login over ssh and try running the batch file. Not sure if it'll work or not...

corbintechboy 11-12-2007 06:05 PM

Get a fake IE or Firefox icon (whatever they use), remove the old real icon, Place a launcher to file on the windows desktop (shortcut), use the fake icon. When they click it the batch file will run...lol that would work :).

dv502 11-12-2007 06:16 PM

thanks pljvaldez and corbintechboy for your suggestions. I think I'll try the latter one using fake icons as it is more simpler to do.

Of course, I'm open to any more suggestions. Thanks in advance

pljvaldez 11-12-2007 06:18 PM

I wonder if there's a cron equivalent for Windows. Then you could make it pop up every so often with no user interaction. :D

brianL 11-13-2007 06:49 AM

I don't want to be seen as condoning or encouraging adolescent pranks, but cron is available with Cygwin.
(Oh God, I'm starting to sound my age...)

Dragineez 11-13-2007 09:16 AM

Codepage
 
One of my favorites has always been to load a different codepage/national language support depending on login. So if Stevie logs into my computer he gets a German keyboard, fonts, and menus. When Joey logs in, he gets Russian, etc. Non-destructive but always good for a laugh.

Jeebizz 11-13-2007 11:30 AM

Quote:

Originally Posted by pljvaldez
I wonder if there's a cron equivalent for Windows.
Under Control Panel double click on the "scheduled tasks", but make sure you are in the classic view. That is assuming you are running XP or later. In Windows2000 it is already in the 'classic' view and it is easier to find.

theriddle 12-29-2007 08:40 AM

Quote:

Originally Posted by dv502 (Post 2956794)
Is there a way, that I can launch the batch file from my linux machine?

You could use a shell script instead of a batch file. If it has to be batch, wine can run batch files.

To get any full screen errors (kernel panic?):
Code:

#!/bin/sh
killall kicker # or gnome-panel
kstart --fullscreen --activate --ontop display kpanic.jpg

Just make sure the image is the same size as your monitor ;).

dv502 12-29-2007 09:26 AM

thanks theriddle for your input.

It was nothing important, just wanted to play some pranks on my family members. Lots of fake viruses and other pranks are on youtube writing simple batch files. lol


All times are GMT -5. The time now is 06:24 AM.