Jump to content

Running scripts without .bat file


mike kadin
 Share

Recommended Posts

I work at a public school, where the IT guys have the systems on total lock down. At the end of the day, everything that isn't saved in "my documents" is erased. There are some changes I would like to make to the standard setup (some shortcuts on the desktop, changing the default printer, etc) that I would normally accomplish with a batch file at startup. So I wrote the batch file, and it works, and I went to save it in the only place where things stick around which is "my documents." It seems, however, that the IT guys have restricted my ability to save .bat, .exe, and .cmd files there.

So I'm wondering, how can I solve this problem? One way I thought would be to have a .txt file in there and just run the commands from there. But I dont know if that's possible in windows. In linux, I would just type:

./my_text.txt

does windows have an equivalent command to the "./" or "source" commands in linux? Or is there some other way around this problem?

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy