Search found 7 matches

by Gaverek
31 Aug 2018 16:21
Forum: DOS Batch Forum
Topic: Refreshing desktop and running script on the background
Replies: 9
Views: 914

Re: Refreshing desktop and running script on the background

You were right after all aGerman, using the converter is not a good idea, in stead I did a do until loop on my vbscript so that it executed the batch file 2 times and that solved my problem
by Gaverek
31 Aug 2018 11:35
Forum: DOS Batch Forum
Topic: Refreshing desktop and running script on the background
Replies: 9
Views: 914

Re: Refreshing desktop and running script on the background

Hi aGerman, thanks for replying, I'm doing this because my boss wanted it, he just doesn't like seeing things on peoples desktop, his issues not mines, I'm just here doing what I'm being asked and payed for. I'm using batch because it was the only way I thought of doing it and used the bat2exe becau...
by Gaverek
31 Aug 2018 09:35
Forum: DOS Batch Forum
Topic: Refreshing desktop and running script on the background
Replies: 9
Views: 914

Re: Refreshing desktop and running script on the background

Solved it converting my bat file with this online batch to .exe converter http://www.f2ko.de/en/ob2e.php just remember to mark the invisible radio button
by Gaverek
30 Aug 2018 17:09
Forum: DOS Batch Forum
Topic: Refreshing desktop and running script on the background
Replies: 9
Views: 914

Re: Refreshing desktop and running script on the background

I think that calling 2 .bat files from the .vbs script may work but I'm not an expert in .vbs scripting so I don't know how to implement it. Hope someone that knows how to do it reads this.
by Gaverek
30 Aug 2018 16:47
Forum: DOS Batch Forum
Topic: Refreshing desktop and running script on the background
Replies: 9
Views: 914

Re: Refreshing desktop and running script on the background

Now I'm having another problem with this, the thing is that I'm having to run 2 times the vbs script to execute all the commands on the .bat file, does anyone knows why and how to solve it?
by Gaverek
30 Aug 2018 14:57
Forum: DOS Batch Forum
Topic: Refreshing desktop and running script on the background
Replies: 9
Views: 914

Re: Refreshing desktop and running script on the background

Solved it calling the .bat script in a .vbs with this code

Code: Select all

Set oShell = CreateObject ("Wscript.Shell")
Dim strArgs
strArgs = "cmd /c MoveItemsFromDesktop.bat"
oShell.Run strArgs, 0, false
Hope it helps someone else. :D
by Gaverek
30 Aug 2018 09:33
Forum: DOS Batch Forum
Topic: Refreshing desktop and running script on the background
Replies: 9
Views: 914

Refreshing desktop and running script on the background

Hello, I'm actually working on a script that moves every single icon from the desktop to another location, which has already been accomplished, here is the code I'm using: robocopy %USERPROFILE%\Desktop\ C:\SWAT /MOVE /S /E md %USERPROFILE%\Desktop The thing is, I'm running this script every 5 minut...