Visual basic to open a folder with the window in a specific location?
A task I frequently need to accomplish is opening two folders and moving specific files from one to another. The file names are random enough that I can't effectively automate this.
Currently I need to click the button to open one folder, reposition it on one side of the screen, click the button to open the second folder, reposition it on the other side of the screen, and move the files.
Is there a way, when sending the command to open a window, that I can specify the dimensions or location of the window it opens? Thus I could make one button to open both folders, with one on each side of the screen.
All computers that use this system will have two monitors, so a command of "Maximize this window to monitor 1" and "Maximize this window to monitor 2" would also work.
Current code I use
If Len(Dir(CurrentProject.path & "" & "RecordFiles" & "" & ID, vbDirectory)) = 0 Then
MkDir CurrentProject.path & "" & "RecordFiles" & "" & ID
End If
Dim path As String
path = CurrentProject.path & "" & "RecordFiles" & "" & ID & ""
Shell "cmd /C start """" /max """ & path & """", vbHide
vba ms-access folder
add a comment |
A task I frequently need to accomplish is opening two folders and moving specific files from one to another. The file names are random enough that I can't effectively automate this.
Currently I need to click the button to open one folder, reposition it on one side of the screen, click the button to open the second folder, reposition it on the other side of the screen, and move the files.
Is there a way, when sending the command to open a window, that I can specify the dimensions or location of the window it opens? Thus I could make one button to open both folders, with one on each side of the screen.
All computers that use this system will have two monitors, so a command of "Maximize this window to monitor 1" and "Maximize this window to monitor 2" would also work.
Current code I use
If Len(Dir(CurrentProject.path & "" & "RecordFiles" & "" & ID, vbDirectory)) = 0 Then
MkDir CurrentProject.path & "" & "RecordFiles" & "" & ID
End If
Dim path As String
path = CurrentProject.path & "" & "RecordFiles" & "" & ID & ""
Shell "cmd /C start """" /max """ & path & """", vbHide
vba ms-access folder
add a comment |
A task I frequently need to accomplish is opening two folders and moving specific files from one to another. The file names are random enough that I can't effectively automate this.
Currently I need to click the button to open one folder, reposition it on one side of the screen, click the button to open the second folder, reposition it on the other side of the screen, and move the files.
Is there a way, when sending the command to open a window, that I can specify the dimensions or location of the window it opens? Thus I could make one button to open both folders, with one on each side of the screen.
All computers that use this system will have two monitors, so a command of "Maximize this window to monitor 1" and "Maximize this window to monitor 2" would also work.
Current code I use
If Len(Dir(CurrentProject.path & "" & "RecordFiles" & "" & ID, vbDirectory)) = 0 Then
MkDir CurrentProject.path & "" & "RecordFiles" & "" & ID
End If
Dim path As String
path = CurrentProject.path & "" & "RecordFiles" & "" & ID & ""
Shell "cmd /C start """" /max """ & path & """", vbHide
vba ms-access folder
A task I frequently need to accomplish is opening two folders and moving specific files from one to another. The file names are random enough that I can't effectively automate this.
Currently I need to click the button to open one folder, reposition it on one side of the screen, click the button to open the second folder, reposition it on the other side of the screen, and move the files.
Is there a way, when sending the command to open a window, that I can specify the dimensions or location of the window it opens? Thus I could make one button to open both folders, with one on each side of the screen.
All computers that use this system will have two monitors, so a command of "Maximize this window to monitor 1" and "Maximize this window to monitor 2" would also work.
Current code I use
If Len(Dir(CurrentProject.path & "" & "RecordFiles" & "" & ID, vbDirectory)) = 0 Then
MkDir CurrentProject.path & "" & "RecordFiles" & "" & ID
End If
Dim path As String
path = CurrentProject.path & "" & "RecordFiles" & "" & ID & ""
Shell "cmd /C start """" /max """ & path & """", vbHide
vba ms-access folder
vba ms-access folder
edited Nov 20 '18 at 18:26
Robert Patrician
asked Nov 15 '18 at 17:20
Robert PatricianRobert Patrician
559
559
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Simplified description of a tool I developed and am using daily as a solution for similar task: On a spreadsheet in A3 path to start folder, in B3 destination folder. Right click in first row lists all file names below A3, which are currently in that path. Right Click in corresponding cell below B3 moves files A3 to B3 and moves on to next file in next row, giving a preview by opening File Explorer.
add a comment |
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%2f53324817%2fvisual-basic-to-open-a-folder-with-the-window-in-a-specific-location%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Simplified description of a tool I developed and am using daily as a solution for similar task: On a spreadsheet in A3 path to start folder, in B3 destination folder. Right click in first row lists all file names below A3, which are currently in that path. Right Click in corresponding cell below B3 moves files A3 to B3 and moves on to next file in next row, giving a preview by opening File Explorer.
add a comment |
Simplified description of a tool I developed and am using daily as a solution for similar task: On a spreadsheet in A3 path to start folder, in B3 destination folder. Right click in first row lists all file names below A3, which are currently in that path. Right Click in corresponding cell below B3 moves files A3 to B3 and moves on to next file in next row, giving a preview by opening File Explorer.
add a comment |
Simplified description of a tool I developed and am using daily as a solution for similar task: On a spreadsheet in A3 path to start folder, in B3 destination folder. Right click in first row lists all file names below A3, which are currently in that path. Right Click in corresponding cell below B3 moves files A3 to B3 and moves on to next file in next row, giving a preview by opening File Explorer.
Simplified description of a tool I developed and am using daily as a solution for similar task: On a spreadsheet in A3 path to start folder, in B3 destination folder. Right click in first row lists all file names below A3, which are currently in that path. Right Click in corresponding cell below B3 moves files A3 to B3 and moves on to next file in next row, giving a preview by opening File Explorer.
answered Dec 4 '18 at 17:43
AlexAlex
238
238
add a comment |
add a comment |
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%2f53324817%2fvisual-basic-to-open-a-folder-with-the-window-in-a-specific-location%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